@@ -4652,12 +4652,15 @@ def test_lua(self):
4652
4652
if Settings .QUANTUM_SIZE == 1 : return self .skip ('TODO: make this work' )
4653
4653
if os .environ .get ('EMCC_FAST_COMPILER' ) == '1' : return self .skip ('todo in fastcomp' )
4654
4654
4655
- self .do_run ('' ,
4656
- 'hello lua world!\n 17\n 1\n 2\n 3\n 4\n 7' ,
4657
- args = ['-e' , '''print("hello lua world!");print(17);for x = 1,4 do print(x) end;print(10-3)''' ],
4658
- libraries = self .get_library ('lua' , [os .path .join ('src' , 'lua' ), os .path .join ('src' , 'liblua.a' )], make = ['make' , 'generic' ], configure = None ),
4659
- includes = [path_from_root ('tests' , 'lua' )],
4660
- output_nicerizer = lambda string , err : (string + err ).replace ('\n \n ' , '\n ' ).replace ('\n \n ' , '\n ' ))
4655
+ for aggro in ([0 , 1 ] if '-O2' in self .emcc_args else [0 ]):
4656
+ print aggro
4657
+ Settings .AGGRESSIVE_VARIABLE_ELIMINATION = aggro
4658
+ self .do_run ('' ,
4659
+ 'hello lua world!\n 17\n 1\n 2\n 3\n 4\n 7' ,
4660
+ args = ['-e' , '''print("hello lua world!");print(17);for x = 1,4 do print(x) end;print(10-3)''' ],
4661
+ libraries = self .get_library ('lua' , [os .path .join ('src' , 'lua' ), os .path .join ('src' , 'liblua.a' )], make = ['make' , 'generic' ], configure = None ),
4662
+ includes = [path_from_root ('tests' , 'lua' )],
4663
+ output_nicerizer = lambda string , err : (string + err ).replace ('\n \n ' , '\n ' ).replace ('\n \n ' , '\n ' ))
4661
4664
4662
4665
def get_freetype (self ):
4663
4666
Settings .DEAD_FUNCTIONS += ['_inflateEnd' , '_inflate' , '_inflateReset' , '_inflateInit2_' ]
0 commit comments