Skip to content

Commit 00188b3

Browse files
committed
.
1 parent c22d005 commit 00188b3

File tree

2 files changed

+4
-6
lines changed

2 files changed

+4
-6
lines changed

test/test_browser.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5328,7 +5328,7 @@ def test_wasm_worker_lock_wait2(self):
53285328
# Tests emscripten_lock_async_acquire() function.
53295329
@also_with_minimal_runtime
53305330
def test_wasm_worker_lock_async_acquire(self):
5331-
self.btest(test_file('wasm_worker/lock_async_acquire.c'), expected='0', args=['--closure=1', '-sWASM_WORKERS'])
5331+
self.btest(test_file('wasm_worker/lock_async_acquire.c'), expected='0', args=['--profiling-funcs', '-sWASM_WORKERS'])
53325332

53335333
# Tests emscripten_lock_busyspin_wait_acquire() in Worker and main thread.
53345334
@also_with_minimal_runtime

tools/system_libs.py

Lines changed: 3 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1341,15 +1341,13 @@ def __init__(self, **kwargs):
13411341
super().__init__(**kwargs)
13421342

13431343
def get_cflags(self):
1344-
cflags = super().get_cflags() + ['-D_DEBUG' if self.debug else '-Oz']
1344+
cflags = super().get_cflags()
13451345
if self.debug:
13461346
# library_wasm_worker.c contains an assert that a nonnull paramater
13471347
# is no NULL, which llvm now warns is redundant/tautological.
1348-
cflags += ['-Wno-tautological-pointer-compare']
1348+
cflags += ['-D_DEBUG', '-Wno-tautological-pointer-compare']
13491349
else:
1350-
cflags += ['-DNDEBUG']
1351-
if self.is_ww or self.is_mt:
1352-
cflags += ['-pthread', '-sWASM_WORKERS']
1350+
cflags += ['-DNDEBUG', '-Oz']
13531351
if settings.MAIN_MODULE:
13541352
cflags += ['-fPIC']
13551353
return cflags

0 commit comments

Comments
 (0)