Skip to content

Commit 9b2c53a

Browse files
authored
Add missing emcc_args to test_modularize_instance. (#24389)
1 parent 3e3e46a commit 9b2c53a

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

test/test_core.py

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9724,6 +9724,8 @@ def test_modularize_instance_hello(self):
97249724
'pthreads': (['-pthread'],),
97259725
})
97269726
def test_modularize_instance(self, args):
9727+
if self.get_setting('WASM_ESM_INTEGRATION') and '-pthread' in args:
9728+
self.skipTest('pthread is not compatible with WASM_ESM_INTEGRATION')
97279729
create_file('library.js', '''\
97289730
addToLibrary({
97299731
$baz: () => console.log('baz'),
@@ -9735,7 +9737,7 @@ def test_modularize_instance(self, args):
97359737
'-sEXPORTED_RUNTIME_METHODS=baz,addOnExit,HEAP32',
97369738
'-sEXPORTED_FUNCTIONS=_bar,_main,qux',
97379739
'--js-library', 'library.js',
9738-
'-o', 'modularize_instance.mjs'] + args)
9740+
'-o', 'modularize_instance.mjs'] + args + self.get_emcc_args())
97399741

97409742
create_file('runner.mjs', '''
97419743
import { strict as assert } from 'assert';

0 commit comments

Comments
 (0)