Skip to content

Commit 0a0cb5e

Browse files
authored
Search for lld for Emscripten builds that use cling
1 parent 5f25366 commit 0a0cb5e

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

CMakeLists.txt

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -106,6 +106,9 @@ include(GNUInstallDirs)
106106
if (CPPINTEROP_USE_CLING)
107107
message(STATUS "Mode CPPINTEROP_USE_CLING = ON")
108108
find_package(LLVM REQUIRED CONFIG ${llvm_search_hints} NO_DEFAULT_PATH)
109+
if(EMSCRIPTEN)
110+
find_package(LLD REQUIRED CONFIG ${lld_search_hints} NO_DEFAULT_PATH)
111+
endif()
109112
find_package(Clang REQUIRED CONFIG ${clang_search_hints} NO_DEFAULT_PATH)
110113
find_package(Cling REQUIRED CONFIG ${cling_search_hints} NO_DEFAULT_PATH)
111114
endif(CPPINTEROP_USE_CLING)

0 commit comments

Comments
 (0)