Use --(no-)strip-wams instead of --(no-)-name-section in dart compile wasm
(#150180)
This commit is contained in:
parent
0cc27b993f
commit
32df505897
@ -152,7 +152,7 @@ class WasmCompilerConfig extends WebCompilerConfig {
|
||||
final bool stripSymbols = buildMode == BuildMode.release && stripWasm;
|
||||
return <String>[
|
||||
'-O$optimizationLevel',
|
||||
'--${stripSymbols ? 'no-' : ''}name-section',
|
||||
'--${stripSymbols ? '' : 'no-'}strip-wasm',
|
||||
];
|
||||
}
|
||||
|
||||
|
@ -951,7 +951,7 @@ void main() {
|
||||
],
|
||||
'--extra-compiler-option=--depfile=${depFile.absolute.path}',
|
||||
'-O$level',
|
||||
if (strip && buildMode == 'release') '--no-name-section' else '--name-section',
|
||||
if (strip && buildMode == 'release') '--strip-wasm' else '--no-strip-wasm',
|
||||
'-o',
|
||||
environment.buildDir.childFile('main.dart.wasm').absolute.path,
|
||||
environment.buildDir.childFile('main.dart').absolute.path,
|
||||
|
Loading…
x
Reference in New Issue
Block a user