Skip to content

Commit 55d5754

Browse files
osa1Commit Queue
authored andcommitted
[dart2wasm] Fix --extra-compiler-option parsing
Don't split the `--extra-compiler-option` values by commas, to allow passing `-D`/`--define` flags like `-DFOO=a, b` as one argument. Fixes the dart2wasm failure in #60346. Change-Id: I9c621f93d4bcd4e35926e495735c8d15a3bac212 Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/416581 Reviewed-by: Martin Kustermann <[email protected]> Commit-Queue: Ömer Ağacan <[email protected]>
1 parent e5bdab7 commit 55d5754

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

pkg/dartdev/lib/src/commands/compile.dart

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -764,6 +764,7 @@ class CompileWasmCommand extends CompileSubcommandCommand {
764764
abbr: 'E',
765765
help: 'An extra option to pass to the dart2wasm compiler.',
766766
hide: !verbose,
767+
splitCommas: false,
767768
)
768769
..addOption(
769770
'optimization-level',

0 commit comments

Comments
 (0)