Skip to content

Commit e3107ba

Browse files
committed
Add missing dependency to emscripten_runtime_keepalive_clear. NFC
Fixes #22783
1 parent b53978e commit e3107ba

File tree

2 files changed

+7
-1
lines changed

2 files changed

+7
-1
lines changed

src/library.js

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -85,7 +85,7 @@ addToLibrary({
8585
#if PTHREADS
8686
'$exitOnMainThread',
8787
#endif
88-
#if PTHREADS_DEBUG
88+
#if PTHREADS_DEBUG || ASSERTIONS
8989
'$runtimeKeepaliveCounter',
9090
#endif
9191
],
@@ -2016,6 +2016,9 @@ addToLibrary({
20162016
throw 'unwind';
20172017
},
20182018

2019+
#if !MINIMAL_RUNTIME
2020+
_emscripten_runtime_keepalive_clear__deps: ['$runtimeKeepaliveCounter'],
2021+
#endif
20192022
_emscripten_runtime_keepalive_clear: () => {
20202023
#if isSymbolNeeded('$noExitRuntime')
20212024
noExitRuntime = false;

test/test_other.py

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -15169,3 +15169,6 @@ def test_fp16(self, opts):
1516915169

1517015170
def test_embool(self):
1517115171
self.do_other_test('test_embool.c')
15172+
15173+
def test_strict_closure(self):
15174+
self.emcc(test_file('hello_world.c'), ['-sSTRICT', '--closure=1'])

0 commit comments

Comments
 (0)