@@ -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
@@ -971,7 +971,7 @@ def lib_builder(name, native, env_init):
971971
972972 self .do_benchmark ('lua_' + benchmark , '' , expected ,
973973 force_c = True , args = [benchmark + '.lua' , DEFAULT_ARG ],
974- emcc_args = ['--embed-file' , benchmark + '.lua' , '-s ' , 'FORCE_FILESYSTEM' , '-s' , 'MINIMAL_RUNTIME =0' ], # not minimal because of files
974+ emcc_args = ['--embed-file' , benchmark + '.lua' , '-sFORCE_FILESYSTEM ' , '-sMINIMAL_RUNTIME =0' ], # not minimal because of files
975975 lib_builder = lib_builder , native_exec = os .path .join ('building' , 'third_party' , 'lua_native' , 'src' , 'lua' ),
976976 output_parser = output_parser , args_processor = args_processor )
977977
@@ -1048,7 +1048,7 @@ def lib_builder(name, native, env_init):
10481048 def test_zzz_sqlite (self ):
10491049 src = read_file (test_file ('third_party/sqlite/sqlite3.c' )) + read_file (test_file ('sqlite/speedtest1.c' ))
10501050 self .do_benchmark ('sqlite' , src , 'TOTAL...' , native_args = ['-ldl' , '-pthread' ], shared_args = ['-I' + test_file ('third_party' , 'sqlite' )],
1051- emcc_args = ['-s ' , 'FILESYSTEM' , '-s' , 'MINIMAL_RUNTIME =0' ], # not minimal because of files
1051+ emcc_args = ['-sFILESYSTEM ' , '-sMINIMAL_RUNTIME =0' ], # not minimal because of files
10521052 force_c = True )
10531053
10541054 def test_zzz_poppler (self ):
@@ -1097,7 +1097,7 @@ def lib_builder(name, native, env_init):
10971097 # TODO: Fix poppler native build and remove skip_native=True
10981098 self .do_benchmark ('poppler' , '' , 'hashed printout' ,
10991099 shared_args = ['-I' + test_file ('poppler' , 'include' ), '-I' + test_file ('freetype' , 'include' )],
1100- emcc_args = ['-s' , 'FILESYSTEM ' , '--pre-js' , 'pre.js' , '--embed-file' ,
1101- test_file ('poppler' , 'emscripten_html5.pdf' ) + '@input.pdf' , '-s' , 'ERROR_ON_UNDEFINED_SYMBOLS =0' ,
1102- '-s' , 'MINIMAL_RUNTIME =0' ], # not minimal because of files
1100+ emcc_args = ['-sFILESYSTEM ' , '--pre-js' , 'pre.js' , '--embed-file' ,
1101+ test_file ('poppler' , 'emscripten_html5.pdf' ) + '@input.pdf' , '-sERROR_ON_UNDEFINED_SYMBOLS =0' ,
1102+ '-sMINIMAL_RUNTIME =0' ], # not minimal because of files
11031103 lib_builder = lib_builder , skip_native = True )
0 commit comments