File tree Expand file tree Collapse file tree 1 file changed +2
-2
lines changed
Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -157,7 +157,7 @@ function(add_test NAME SOURCE_LIST NEED_ENTRY PTHREAD LINKOPTIONS)
157157 target_link_libraries (${NAME} PRIVATE "testcommon" )
158158 if (IS_WASM)
159159 if (PTHREAD)
160- if (IS_WASI OR IS_WASM32)
160+ if (( IS_WASI AND NOT IS_WASI_THREADS) OR IS_WASM32)
161161 target_link_libraries (${NAME} PRIVATE "emnapi-basic" )
162162 else ()
163163 target_link_libraries (${NAME} PRIVATE "emnapi-mt" )
@@ -202,7 +202,7 @@ function(add_naa_test NAME SOURCE_LIST DEFINES ENABLE_EXCEPTION)
202202 set_target_properties (${NAME} PROPERTIES
203203 BUILD_RPATH "$ORIGIN" )
204204 if (IS_WASM)
205- if (IS_WASI OR IS_WASM32)
205+ if (( IS_WASI AND NOT IS_WASI_THREADS) OR IS_WASM32)
206206 target_link_libraries (${NAME} PRIVATE "emnapi-basic" )
207207 else ()
208208 target_link_libraries (${NAME} PRIVATE "emnapi-mt" )
You can’t perform that action at this time.
0 commit comments