@@ -12898,13 +12898,19 @@ def test_syscall_stubs(self):
12898
12898
self.do_other_test('test_syscall_stubs.c')
12899
12899
12900
12900
@parameterized({
12901
- '': (False, False),
12902
- 'custom': (True, False),
12903
- 'jspi': (False, True),
12901
+ '': (False, False, False),
12902
+ 'custom': (True, False, False),
12903
+ 'jspi': (False, True, False),
12904
+ 'O3': (False, False, True)
12904
12905
})
12905
- def test_split_module(self, customLoader, jspi):
12906
+ def test_split_module(self, customLoader, jspi, opt ):
12906
12907
self.set_setting('SPLIT_MODULE')
12907
- self.emcc_args += ['-g', '-Wno-experimental']
12908
+ self.emcc_args += ['-Wno-experimental']
12909
+ if opt:
12910
+ # Test that it works in the presence of export minification
12911
+ self.emcc_args += ['-O3']
12912
+ else:
12913
+ self.emcc_args += ['-g']
12908
12914
self.emcc_args += ['--post-js', test_file('other/test_split_module.post.js')]
12909
12915
if customLoader:
12910
12916
self.emcc_args += ['--pre-js', test_file('other/test_load_split_module.pre.js')]
0 commit comments