File tree Expand file tree Collapse file tree 1 file changed +21
-1
lines changed
Expand file tree Collapse file tree 1 file changed +21
-1
lines changed Original file line number Diff line number Diff line change 11if (EMSCRIPTEN)
22 set_property (GLOBAL PROPERTY TARGET_SUPPORTS_SHARED_LIBS TRUE )
3- set (LLVM_LINK_COMPONENTS "" )
3+ set (CMAKE_SHARED_LIBRARY_CREATE_C_FLAGS "-s SIDE_MODULE=1" )
4+ set (CMAKE_SHARED_LIBRARY_CREATE_CXX_FLAGS "-s SIDE_MODULE=1" )
5+ set (CMAKE_STRIP FALSE )
6+
7+ add_llvm_library(clangCppInterOp
8+ SHARED
9+
10+ CppInterOp.cpp
11+ CXCppInterOp.cpp
12+ DynamicLibraryManager.cpp
13+ DynamicLibraryManagerSymbol.cpp
14+ Paths .cpp
15+
16+ # Additional libraries from Clang and LLD
17+ LINK_LIBS
18+ clangInterpreter
19+ )
20+ target_link_options (clangCppInterOp PRIVATE
21+ PUBLIC "SHELL: -s WASM_BIGINT"
22+ PUBLIC "SHELL: -Wl,--export=__clang_Interpreter_SetValueNoAlloc"
23+ )
424else ()
525 set (LLVM_LINK_COMPONENTS
626 ${LLVM_TARGETS_TO_BUILD}
You can’t perform that action at this time.
0 commit comments