File tree Expand file tree Collapse file tree 2 files changed +8
-1
lines changed
Expand file tree Collapse file tree 2 files changed +8
-1
lines changed Original file line number Diff line number Diff line change @@ -64,7 +64,11 @@ function(add_executable target)
6464 # WASI
6565 set_property (TARGET ${wasm_target} PROPERTY SUFFIX ".wasi.wasm" )
6666 if (NOT TARGET wasi-itk-extras AND DEFINED CMAKE_CXX_COMPILE_OBJECT)
67- add_library (wasi-itk-extras STATIC /ITKWebAssemblyInterface/src/exceptionShim.cxx /ITKWebAssemblyInterface/src/cxaThreadAtExitShim.cxx /ITKWebAssemblyInterface/src/pthreadShim.c /ITKWebAssemblyInterface/src/initialization.cxx)
67+ add_library (wasi-itk-extras STATIC
68+ /ITKWebAssemblyInterface/src/exceptionShim.cxx
69+ /ITKWebAssemblyInterface/src/cxaThreadAtExitShim.cxx
70+ /ITKWebAssemblyInterface/src/pthreadShim.cxx
71+ /ITKWebAssemblyInterface/src/initialization.cxx)
6872 endif ()
6973 get_property (_is_imported TARGET ${wasm_target} PROPERTY IMPORTED )
7074 if (NOT ${_is_imported} )
Original file line number Diff line number Diff line change 2020
2121#include < pthread.h>
2222
23+ extern " C" {
24+
2325int pthread_attr_setscope (pthread_attr_t *attr, int contentionscope)
2426{}
2527
@@ -30,3 +32,4 @@ int pthread_atfork(
3032)
3133{}
3234
35+ } // end extern "C"
You can’t perform that action at this time.
0 commit comments