https://github.com/anutosh491 created https://github.com/llvm/llvm-project/pull/230154
I found this while preparing standalone LLVM/Clang/LLD builds on emscripten-forge. ClangInterpreter checks `LLVM_ENABLE_PROJECTS` even when LLD is already installed/built separately. This lets it reuse existing LLD targets or find the installed LLD package when building Clang separately. >From de689575cd6335fdf4e2ff09c48878311157b268 Mon Sep 17 00:00:00 2001 From: anutosh491 <[email protected]> Date: Thu, 8 Oct 2026 20:42:36 +0530 Subject: [PATCH] [clang-repl] Find installed LLD for standalone Emscripten builds --- clang/lib/Interpreter/CMakeLists.txt | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/clang/lib/Interpreter/CMakeLists.txt b/clang/lib/Interpreter/CMakeLists.txt index 95bac67e1b9db..d577894e1e7d3 100644 --- a/clang/lib/Interpreter/CMakeLists.txt +++ b/clang/lib/Interpreter/CMakeLists.txt @@ -10,8 +10,8 @@ set(LLVM_LINK_COMPONENTS ) if (EMSCRIPTEN) - if (NOT "lld" IN_LIST LLVM_ENABLE_PROJECTS) - message(FATAL_ERROR "Building clangInterpreter for Emscripten requires lld") + if (NOT TARGET lldWasm) + find_package(LLD REQUIRED CONFIG) endif() set(EXECUTOR_SOURCES Wasm.cpp) set(EXECUTOR_LIBS lldWasm lldCommon) _______________________________________________ cfe-commits mailing list [email protected] https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits
