dart-sdk/utils
Daco Harkes 35223586a3 Reland "[build] Use an absolute path for the snapshot"
When constructing the command line for creating the kernel service
snapshot, the variable `abs_output` actually contains a relative
path, which means that copy/pasting the generated command line fails
if not within the root build directory. This CL fixes that.

Previous revert: https://dart-review.googlesource.com/c/sdk/+/200940

Passes `--depfile-output-filename` with the path relative to the output
folder so that the written depfiles do not contain the absolute file
paths.

ninja only accepts paths relative to the build folder in the .d files.

Manually tested that the dependencies now work with running the
build twice:
`tools/build.py --no-start-goma -mrelease create_platform_sdk`

Inspecting the .d file in question that caused the revert:
`cat out/ReleaseX64/gen/kernel-service.dart.snapshot.d`

TEST=SDK build

Change-Id: Id781d2ed94ad7a0041e5899b8fded598de81242b
Cq-Include-Trybots: luci.dart.try:dart-sdk-linux-try,dart-sdk-mac-try,dart-sdk-win-try
Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/200876
Reviewed-by: Tess Strickland <sstrickl@google.com>
Commit-Queue: Daco Harkes <dacoharkes@google.com>
2021-05-21 11:52:02 +00:00
..
analysis_server Reapply "[build] Don't list Dart sources up front when creating application snapshots." 2021-04-27 17:22:54 +00:00
bazel Reapply "[build] Don't list Dart sources up front when creating application snapshots." 2021-04-27 17:22:54 +00:00
compiler [infra] Migrate scripts to python3 2021-04-15 10:10:20 +00:00
dart2native [BUILD] - Format gn files, this is being done to ensure the unfork CL 2020-03-10 21:56:11 +00:00
dartanalyzer Reapply "[build] Don't list Dart sources up front when creating application snapshots." 2021-04-27 17:22:54 +00:00
dartdev Reland "[ VM / DDS / CLI ] Add DevTools support to the standalone VM" 2021-05-11 17:55:26 +00:00
dartdevc Reapply "[build] Don't list Dart sources up front when creating application snapshots." 2021-04-27 17:22:54 +00:00
dartdoc [VM/SDK] Switch kernel isolate to run in Dart 2 mode 2018-08-21 20:28:06 +00:00
dartfmt [VM/SDK] Switch kernel isolate to run in Dart 2 mode 2018-08-21 20:28:06 +00:00
dds Reapply "[build] Don't list Dart sources up front when creating application snapshots." 2021-04-27 17:22:54 +00:00
gen_kernel Reapply "[build] Don't list Dart sources up front when creating application snapshots." 2021-04-27 17:22:54 +00:00
kernel-service Remove bytecode mode of Dart SDK build 2020-10-21 22:43:14 +00:00
peg Spelling fixes e to i. 2017-06-24 13:41:39 +02:00
pub Remove workaround introduced for issue #40486, that issue 2020-02-26 03:26:25 +00:00
tests/peg [test] Apply simarm64 status file entries to simarm64c. 2021-02-25 21:18:02 +00:00
application_snapshot.gni Reland "[build] Use an absolute path for the snapshot" 2021-05-21 11:52:02 +00:00
compile_platform.gni Reland "[SDK] Adds an SDK hash to kernels and the VM." 2020-07-07 06:08:20 +00:00
create_timestamp.gni Reapply "[build] Track glob dependencies via depfiles, instead of always re-executing scripts at GN time." 2021-05-12 00:27:28 +00:00