bb8df0760e
This allows `dart compile` to be used from the build root without a fully built SDK. Abstract out executable and dill retrieval in Sdk getters similar to how snapshot retrieval was abstracted out. Remove the hostDartAotRuntime parameter to generateKernelHelper, since all callers always passed the same variable from generate.dart, and instead retrieve it using Sdk.dartAotRuntime. Remove all the top-level variables that contained paths in dart2native.dart and generate.dart and replace their uses with the appropriate Sdk getter. TEST=ci Cq-Include-Trybots: luci.dart.try:pkg-linux-release-arm64-try,pkg-linux-release-try,pkg-mac-release-arm64-try,pkg-mac-release-try,pkg-win-release-arm64-try,pkg-win-release-try,dart-sdk-linux-riscv64-try,dart-sdk-linux-arm64-try,dart-sdk-linux-try,dart-sdk-mac-try,dart-sdk-win-arm64-try,dart-sdk-win-try,dart-sdk-mac-arm64-try Change-Id: I92d8110faff135263a9fdf1c395759a52dab914b Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/442181 Commit-Queue: Tess Strickland <sstrickl@google.com> Reviewed-by: Daco Harkes <dacoharkes@google.com>