[dart2wasm] Make --shell-option work in pkg/dart2wasm/tool/run_benchmark script

Change-Id: Ib7de19a936c211fd593fa81d37764e734193eac8
Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/373260
Commit-Queue: Martin Kustermann <kustermann@google.com>
Reviewed-by: Ömer Ağacan <omersa@google.com>
This commit is contained in:
Martin Kustermann 2024-06-26 12:08:19 +00:00
parent 8f962bdff6
commit f3e1b210de
2 changed files with 3 additions and 3 deletions

View file

@ -86,4 +86,4 @@ while [ $# -gt 0 ]; do
esac
done
exec "$SHELL_BIN" "$RUN_WASM" $SHELL_ARG_SEPERATOR "$MJS_FILE" "$WASM_FILE" "${LINEAR_WASM_FILES[@]}" -- "$@"
exec "$SHELL_BIN" "${SHELL_OPTIONS[@]}" "$RUN_WASM" $SHELL_ARG_SEPERATOR "$MJS_FILE" "$WASM_FILE" "${LINEAR_WASM_FILES[@]}" -- "$@"

View file

@ -606,8 +606,8 @@ class Dart2WasmCompilerConfiguration extends CompilerConfiguration {
final isD8 = runtimeConfiguration is D8RuntimeConfiguration;
return [
if (isD8) ...[
'--shell-option=turboshaft-wasm',
'--shell-option=experimental-wasm-imported-strings',
'--shell-option=--turboshaft-wasm',
'--shell-option=--experimental-wasm-imported-strings',
],
wasmFilename,
...testFile.sharedObjects