File tree 2 files changed +10
-10
lines changed
2 files changed +10
-10
lines changed Original file line number Diff line number Diff line change @@ -2078,16 +2078,12 @@ addToLibrary({
2078
2078
// at runtime.
2079
2079
$keepRuntimeAlive__deps : [ '$runtimeKeepaliveCounter' ] ,
2080
2080
$keepRuntimeAlive : ( ) = > noExitRuntime || runtimeKeepaliveCounter > 0 ,
2081
- #elif ! EXIT_RUNTIME
2082
- // When `noExitRuntime` is not include and EXIT_RUNTIME=0 then we know the
2081
+ #elif ! EXIT_RUNTIME && ! PTHREADS
2082
+ // When `noExitRuntime` is not included and EXIT_RUNTIME=0 then we know the
2083
2083
// runtime can never exit (i.e. should always be kept alive).
2084
- // However for pthreads we always default to allowing the runtime to exit
2085
- // otherwise threads never exit and are not joinable.
2086
- #if PTHREADS
2087
- $keepRuntimeAlive : ( ) = > ! ENVIRONMENT_IS_PTHREAD ,
2088
- #else
2084
+ // However, since pthreads themselves always need to be able to exit we
2085
+ // have to track `runtimeKeepaliveCounter` in that case.
2089
2086
$keepRuntimeAlive : ( ) = > true ,
2090
- #endif
2091
2087
#else
2092
2088
$keepRuntimeAlive__deps : [ '$runtimeKeepaliveCounter' ] ,
2093
2089
$keepRuntimeAlive : ( ) = > runtimeKeepaliveCounter > 0 ,
Original file line number Diff line number Diff line change @@ -13640,8 +13640,12 @@ def test_pthread_icu(self):
13640
13640
self.do_other_test('test_pthread_icu.cpp')
13641
13641
13642
13642
@node_pthreads
13643
- def test_pthread_set_main_loop(self):
13644
- self.do_other_test('test_pthread_set_main_loop.c')
13643
+ @parameterized({
13644
+ '': ([],),
13645
+ 'strict': (['-sSTRICT'],),
13646
+ })
13647
+ def test_pthread_set_main_loop(self, args):
13648
+ self.do_other_test('test_pthread_set_main_loop.c', emcc_args=args)
13645
13649
13646
13650
# unistd tests
13647
13651
You can’t perform that action at this time.
0 commit comments