Skip to content

Commit f6eb26d

Browse files
aartbikcommit-bot@chromium.org
authored andcommitted
[dart/vm] add ability to pass VM flags to dart when running gen_kernel.dart in precompiler2 script
Rationale: The objective is to use dart --enable-asserts gen_kernel.dart .... using DART_VM_FLAGS #38965 Change-Id: Ibb255b51fa956d841103e85a0129dfc9974b4e11 Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/122165 Commit-Queue: Aart Bik <ajcbik@google.com> Reviewed-by: Alexander Markov <alexmarkov@google.com> Reviewed-by: Daco Harkes <dacoharkes@google.com>
1 parent 2c1d405 commit f6eb26d

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

pkg/vm/tool/precompiler2

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -92,6 +92,7 @@ BIN_DIR="$OUT_DIR/$DART_CONFIGURATION"
9292

9393
# Step 1: Generate Kernel binary from the input Dart source.
9494
"$BIN_DIR"/dart \
95+
${DART_VM_FLAGS} \
9596
"${SDK_DIR}/pkg/vm/bin/gen_kernel.dart" \
9697
--platform "${BIN_DIR}/vm_platform_strong.dill" \
9798
--aot \

0 commit comments

Comments
 (0)