Skip to content

Commit 9029534

Browse files
authored
Update CMakeLists.txt
1 parent 36af151 commit 9029534

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

lib/Interpreter/CMakeLists.txt

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,5 @@
11
if(EMSCRIPTEN)
22
set_property(GLOBAL PROPERTY TARGET_SUPPORTS_SHARED_LIBS TRUE)
3-
set(LDFLAGS "-s MODULARIZE=1 -s LINKABLE=1 -s EXPORT_ALL=1 -s WASM=1 -std=c++14 -s SIDE_MODULE=1 -sWASM_BIGINT")
43
set(CMAKE_SHARED_LIBRARY_CREATE_C_FLAGS "-s SIDE_MODULE=1")
54
set(CMAKE_SHARED_LIBRARY_CREATE_CXX_FLAGS "-s SIDE_MODULE=1")
65
set(CMAKE_STRIP FALSE)
@@ -18,6 +17,9 @@ if(EMSCRIPTEN)
1817
LINK_LIBS
1918
clangInterpreter
2019
)
20+
target_link_options(clangCppInterOp PRIVATE
21+
PUBLIC "SHELL: -s WASM_BIGINT"
22+
)
2123
else()
2224
set(LLVM_LINK_COMPONENTS
2325
${LLVM_TARGETS_TO_BUILD}

0 commit comments

Comments
 (0)