Files
sdk/pkg/vm/tool
Tess Strickland 4f77ee4b88 [pkg/vm] Add GEN_SNAPSHOT_FLAGS to the precompiler2 tool.
Additional flags can be passed to the kernel compilation step via the
DART_VM_FLAGS environment variable, but there's no way to specify
additional flags to be passed to the gen_snapshot step. This CL changes
that by also passing the contents of the GEN_SNAPSHOT_FLAGS environment
variable to that step, so the tool can be invoked like:

DART_CONFIGURATION=ReleaseX64 \
GEN_SNAPSHOT_FLAGS="--redirect-isolate-log-to=tmp/graphs.log \
                    --print-flow-graph-optimized" \
pkg/vm/tool/precompiler2 ...

TEST=manual use

Change-Id: Iadc6a888c60ec306799885e49a39568b124a1c10
Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/345660
Reviewed-by: Daco Harkes <dacoharkes@google.com>
Commit-Queue: Tess Strickland <sstrickl@google.com>
2024-01-11 14:22:22 +00:00
..