File tree 1 file changed +5
-3
lines changed
1 file changed +5
-3
lines changed Original file line number Diff line number Diff line change @@ -28,7 +28,9 @@ set(SNMALLOC_STATIC_LIBRARY_PREFIX "sn_" CACHE STRING "Static library function p
28
28
29
29
if (ENABLE_WASI)
30
30
31
- set ( COMPILER_BIN /opt/wasi-sdk/bin)
31
+ set ( COMPILER_BIN /usr/local/vwasm/toolchain/bin)
32
+ set ( WASM_SYSROOT /usr/local/vwasm/llvm-sysroot)
33
+
32
34
set ( CMAKE_C_COMPILER ${COMPILER_BIN} /clang CACHE PATH "clang" FORCE )
33
35
set ( CMAKE_CXX_COMPILER ${COMPILER_BIN} /clang++ CACHE PATH "clang++" FORCE )
34
36
set ( CMAKE_AR ${COMPILER_BIN} /llvm-ar CACHE PATH "llvm-ar" FORCE )
@@ -102,11 +104,11 @@ endmacro()
102
104
# The main target for snmalloc
103
105
add_library (snmalloc_lib INTERFACE )
104
106
target_include_directories (snmalloc_lib INTERFACE src/)
105
- add_compile_options (--target =wasm32-wasi -fno-trapping-math --sysroot=/opt/wasi-sdk -nostdinc++ -nostdinc )#-nostdinc++
107
+ add_compile_options (--target =wasm32-wasi -fno-trapping-math --sysroot=${WASM_SYSROOT} -fno-exceptions )#-nostdinc++ -nostdinc
106
108
107
109
#/opt/wasi-sdk/share/wasi-sysroot/include/c++/v1/
108
110
#${MUSL_INCLUDES}
109
- target_include_directories (snmalloc_lib INTERFACE /opt/wasi-sdk/share/wasi-sysroot/include /c++/v1/ /opt/wasi-sdk/share/wasi-sysroot/include /opt/wasi-sdk/lib/clang/10.0.0/ include / )
111
+ # target_include_directories(snmalloc_lib INTERFACE /opt/wasi-sdk/share/wasi-sysroot/include/c++/v1/ /opt/wasi-sdk/share/wasi-sysroot/include )
110
112
111
113
112
114
You can’t perform that action at this time.
0 commit comments