@@ -203,9 +203,9 @@ def build(self, parent, filename, args, shared_args, emcc_args, native_args, nat
203203 cmd = [
204204 EMCC , filename ,
205205 OPTIMIZATIONS ,
206- '-s' , 'INITIAL_MEMORY =256MB' ,
207- '-s' , 'ENVIRONMENT =node,shell' ,
208- '-s' , 'BENCHMARK =%d' % (1 if IGNORE_COMPILATION and not has_output_parser else 0 ),
206+ '-sINITIAL_MEMORY =256MB' ,
207+ '-sENVIRONMENT =node,shell' ,
208+ '-sBENCHMARK =%d' % (1 if IGNORE_COMPILATION and not has_output_parser else 0 ),
209209 '-o' , final
210210 ] + shared_args + LLVM_FEATURE_FLAGS
211211 if common .EMTEST_FORCE64 :
@@ -216,7 +216,7 @@ def build(self, parent, filename, args, shared_args, emcc_args, native_args, nat
216216 # above, such as minimal runtime
217217 cmd += emcc_args + self .extra_args
218218 if 'FORCE_FILESYSTEM' not in cmd :
219- cmd += ['-s' , 'FILESYSTEM =0' ]
219+ cmd += ['-sFILESYSTEM =0' ]
220220 if PROFILING :
221221 cmd += ['--profiling-funcs' ]
222222 self .cmd = cmd
@@ -253,9 +253,9 @@ def build(self, parent, filename, args, shared_args, emcc_args, native_args, nat
253253 # wasm2c doesn't want minimal runtime which the normal emscripten
254254 # benchmarker defaults to, as we don't have any JS anyhow
255255 emcc_args = emcc_args + [
256- '-s' , 'STANDALONE_WASM ' ,
257- '-s' , 'MINIMAL_RUNTIME =0' ,
258- '-s' , 'WASM2C '
256+ '-sSTANDALONE_WASM ' ,
257+ '-sMINIMAL_RUNTIME =0' ,
258+ '-sWASM2C '
259259 ]
260260
261261 global LLVM_FEATURE_FLAGS
@@ -970,7 +970,7 @@ def lib_builder(name, native, env_init):
970970
971971 self .do_benchmark ('lua_' + benchmark , '' , expected ,
972972 force_c = True , args = [benchmark + '.lua' , DEFAULT_ARG ],
973- emcc_args = ['--embed-file' , benchmark + '.lua' , '-s ' , 'FORCE_FILESYSTEM' , '-s' , 'MINIMAL_RUNTIME =0' ], # not minimal because of files
973+ emcc_args = ['--embed-file' , benchmark + '.lua' , '-sFORCE_FILESYSTEM ' , '-sMINIMAL_RUNTIME =0' ], # not minimal because of files
974974 lib_builder = lib_builder , native_exec = os .path .join ('building' , 'third_party' , 'lua_native' , 'src' , 'lua' ),
975975 output_parser = output_parser , args_processor = args_processor )
976976
@@ -1047,7 +1047,7 @@ def lib_builder(name, native, env_init):
10471047 def test_zzz_sqlite (self ):
10481048 src = read_file (test_file ('third_party/sqlite/sqlite3.c' )) + read_file (test_file ('sqlite/speedtest1.c' ))
10491049 self .do_benchmark ('sqlite' , src , 'TOTAL...' , native_args = ['-ldl' , '-pthread' ], shared_args = ['-I' + test_file ('third_party' , 'sqlite' )],
1050- emcc_args = ['-s ' , 'FILESYSTEM' , '-s' , 'MINIMAL_RUNTIME =0' ], # not minimal because of files
1050+ emcc_args = ['-sFILESYSTEM ' , '-sMINIMAL_RUNTIME =0' ], # not minimal because of files
10511051 force_c = True )
10521052
10531053 def test_zzz_poppler (self ):
@@ -1096,7 +1096,7 @@ def lib_builder(name, native, env_init):
10961096 # TODO: Fix poppler native build and remove skip_native=True
10971097 self .do_benchmark ('poppler' , '' , 'hashed printout' ,
10981098 shared_args = ['-I' + test_file ('poppler' , 'include' ), '-I' + test_file ('freetype' , 'include' )],
1099- emcc_args = ['-s' , 'FILESYSTEM ' , '--pre-js' , 'pre.js' , '--embed-file' ,
1100- test_file ('poppler' , 'emscripten_html5.pdf' ) + '@input.pdf' , '-s' , 'ERROR_ON_UNDEFINED_SYMBOLS =0' ,
1101- '-s' , 'MINIMAL_RUNTIME =0' ], # not minimal because of files
1099+ emcc_args = ['-sFILESYSTEM ' , '--pre-js' , 'pre.js' , '--embed-file' ,
1100+ test_file ('poppler' , 'emscripten_html5.pdf' ) + '@input.pdf' , '-sERROR_ON_UNDEFINED_SYMBOLS =0' ,
1101+ '-sMINIMAL_RUNTIME =0' ], # not minimal because of files
11021102 lib_builder = lib_builder , skip_native = True )
0 commit comments