mirror of
https://github.com/dart-lang/sdk
synced 2024-09-05 16:41:07 +00:00
[VM] Add $target_gen_dir/gen_kernel_bytecode.dill.d to outputs of GN action, to ensure directory is created before action is run
This fixes flaky build failures on our bots. To reproduce the original issue: % rm -rf out/DebugX64 % tools/build.py -mdebug -ax64 gen_kernel_bytecode_dill output: Error: Unable to open snapshot depfile: .../out/DebugX64/gen/runtime/bin/gen_kernel_bytecode.dill.d This change seems to force GN to create the parent directory of outputs before running the action. Change-Id: Ia388f423d7724516bc6f00cd39bed19533587f39 Reviewed-on: https://dart-review.googlesource.com/c/79202 Reviewed-by: Vyacheslav Egorov <vegorov@google.com> Commit-Queue: Martin Kustermann <kustermann@google.com>
This commit is contained in:
parent
49d7fb39ac
commit
5c9a8d8cb5
|
@ -826,13 +826,14 @@ prebuilt_dart_action("gen_kernel_bytecode_dill") {
|
|||
platform_dill = "$root_out_dir/vm_platform_strong.dill"
|
||||
|
||||
output = "$root_out_dir/gen_kernel_bytecode.dill"
|
||||
depfile = "$target_gen_dir/gen_kernel_bytecode.dill.d"
|
||||
outputs = [
|
||||
output,
|
||||
depfile,
|
||||
]
|
||||
|
||||
script = "../../pkg/vm/bin/gen_kernel.dart"
|
||||
|
||||
depfile = "$target_gen_dir/gen_kernel_bytecode.dill.d"
|
||||
abs_depfile = rebase_path(depfile)
|
||||
rebased_output = rebase_path(output, root_out_dir)
|
||||
vm_args = [
|
||||
|
|
Loading…
Reference in a new issue