Skip to content

Commit ede5955

Browse files
committed
Turn embind into MTLibrary
Newly added _emval_coro_reject() function calls JS Promise reject functor at the end of call hierarchy. Since the call crosses C++ JS barrier, the Signature::get_method_caller() function is called, which has thread_local variable, adding thread local storage, and therefore the requirement for the embind to be compiled with same threadness as the main program.
1 parent ee390dd commit ede5955

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

tools/system_libs.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1925,7 +1925,7 @@ class libwebgpu_cpp(MTLibrary):
19251925
src_files = ['webgpu_cpp.cpp']
19261926

19271927

1928-
class libembind(Library):
1928+
class libembind(MTLibrary):
19291929
name = 'libembind'
19301930
never_force = True
19311931

0 commit comments

Comments
 (0)