Skip to content

Commit d61f58f

Browse files
committed
Fix undefined lld::wasm::link symbol while building clangInterpreter for wasm
1 parent 6dad29a commit d61f58f

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

clang/lib/Interpreter/CMakeLists.txt

+2
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,7 @@ set(LLVM_LINK_COMPONENTS
1414

1515
if (EMSCRIPTEN AND "lld" IN_LIST LLVM_ENABLE_PROJECTS)
1616
set(WASM_SRC Wasm.cpp)
17+
set(WASM_LINK lldWasm)
1718
endif()
1819

1920
add_clang_library(clangInterpreter
@@ -44,6 +45,7 @@ add_clang_library(clangInterpreter
4445
clangParse
4546
clangSema
4647
clangSerialization
48+
${WASM_LINK}
4749
)
4850

4951
if ((MINGW OR CYGWIN) AND BUILD_SHARED_LIBS)

0 commit comments

Comments
 (0)