Skip to content

Commit 1a170f9

Browse files
committed
Remove soname and zdefs flags emscripten build
1 parent c9499ae commit 1a170f9

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

lib/Interpreter/CMakeLists.txt

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,9 @@ if(EMSCRIPTEN)
22
set_property(GLOBAL PROPERTY TARGET_SUPPORTS_SHARED_LIBS TRUE)
33
set(CMAKE_SHARED_LIBRARY_CREATE_C_FLAGS "-s SIDE_MODULE=1")
44
set(CMAKE_SHARED_LIBRARY_CREATE_CXX_FLAGS "-s SIDE_MODULE=1")
5+
set(CMAKE_SHARED_LIBRARY_SONAME_CXX_FLAG "")
6+
set(CMAKE_SHARED_LIBRARY_SONAME_C_FLAG "")
7+
set(CMAKE_SHARED_LINKER_FLAGS "")
58
set(CMAKE_STRIP FALSE)
69

710
add_llvm_library(clangCppInterOp
@@ -17,6 +20,9 @@ if(EMSCRIPTEN)
1720
LINK_LIBS
1821
clangInterpreter
1922
)
23+
set_target_properties(clangCppInterOp
24+
PROPERTIES NO_SONAME 1
25+
)
2026
target_link_options(clangCppInterOp PRIVATE
2127
PUBLIC "SHELL: -s WASM_BIGINT"
2228
)

0 commit comments

Comments
 (0)