[build] Put less into gen dir to avoid copying to test shards.

obj is filtered from the testing shard file sets but gen is not, and some tests depend on things in gen.

TEST=ci
Change-Id: I19bc763935c1cfd5077b2aeaf83e37f992ab785c
Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/508281
Commit-Queue: Ryan Macnak <rmacnak@google.com>
Reviewed-by: Alexander Aprelev <aam@google.com>
This commit is contained in:
Ryan Macnak
2026-06-01 15:25:58 -07:00
committed by dart-scoped@luci-project-accounts.iam.gserviceaccount.com
parent 7dab27015c
commit ce32f4e1a7
6 changed files with 30 additions and 27 deletions
+6 -6
View File
@@ -616,8 +616,8 @@ dart_io("common_embedder_dart_io_product") {
gen_snapshot_action("core_snapshot_bin") {
deps = [ "../vm:vm_platform_stripped" ]
snapshot_data = "$target_gen_dir/core_snapshot_data.bin"
snapshot_text = "$target_gen_dir/core_snapshot_text.bin"
snapshot_data = "$target_out_dir/core_snapshot_data.bin"
snapshot_text = "$target_out_dir/core_snapshot_text.bin"
platform_dill = "$root_out_dir/vm_platform_stripped.dill"
inputs = [ platform_dill ]
@@ -638,12 +638,12 @@ gen_snapshot_action("ffi_callback_stub_bin") {
deps = [ "../vm:vm_platform_stripped" ]
platform_dill = "$root_out_dir/vm_platform_stripped.dill"
inputs = [ platform_dill ]
outputs = [ "$target_gen_dir/ffi_callback_stub.bin" ]
outputs = [ "$target_out_dir/ffi_callback_stub.bin" ]
args = [
"--deterministic",
"--snapshot_kind=ffi-callback-stub",
"--ffi_callback_stub=" +
rebase_path("$target_gen_dir/ffi_callback_stub.bin", root_build_dir),
rebase_path("$target_out_dir/ffi_callback_stub.bin", root_build_dir),
rebase_path(platform_dill, root_build_dir),
]
}
@@ -744,14 +744,14 @@ template("bin_to_linkable") {
bin_to_linkable("core_snapshot_data_linkable") {
deps = [ ":core_snapshot_bin" ]
input = "$target_gen_dir/core_snapshot_data.bin"
input = "$target_out_dir/core_snapshot_data.bin"
symbol = "kDartCoreSnapshotData"
executable = false
}
bin_to_linkable("core_snapshot_text_linkable") {
deps = [ ":core_snapshot_bin" ]
input = "$target_gen_dir/core_snapshot_text.bin"
input = "$target_out_dir/core_snapshot_text.bin"
symbol = "kDartCoreSnapshotText"
executable = true
}