aboutsummaryrefslogtreecommitdiff
path: root/cmake/NativeCompiler.cmake
diff options
context:
space:
mode:
author_ov4 <ov4@ov4.org>2026-10-16 08:41:13 +0000
committer_ov4 <ov4@ov4.org>2026-10-16 08:41:13 +0000
commit2fa822edd6f6891e70d26fcfd4eff90d04669a7d (patch)
tree599de9179953c44a9c215ef29b8cd2de6f128c89 /cmake/NativeCompiler.cmake
parentd74e6f5278e67f42e9a020f81c9eb0272f624618 (diff)
fix(build): exclude unused LLVM networking libraries
Keep LLVMHTTP and LLVMDebuginfod out of the static fallback so native compilation does not require the optional CURL::libcurl target. Co-Authored-By: Claude Fable 5.1 <noreply@anthropic.com>
Diffstat (limited to 'cmake/NativeCompiler.cmake')
-rw-r--r--cmake/NativeCompiler.cmake6
1 files changed, 3 insertions, 3 deletions
diff --git a/cmake/NativeCompiler.cmake b/cmake/NativeCompiler.cmake
index 0a2ad70..29682ec 100644
--- a/cmake/NativeCompiler.cmake
+++ b/cmake/NativeCompiler.cmake
@@ -71,9 +71,9 @@ target_link_libraries(cpsc PRIVATE clangDriver ${cpsc_linker_libraries})
# library in their imported interfaces. Resolve those edges to static archives.
add_library(CPSCStaticLLVM INTERFACE)
foreach(cpsc_llvm_library IN LISTS LLVM_AVAILABLE_LIBS)
- # Standalone tools are not driver/linker dependencies and may reference
- # optional packages absent from binary SDK installations.
- if(cpsc_llvm_library MATCHES "^LLVM(LineEditor|BOLT.*|Exegesis.*|OptDriver)$")
+ # Standalone tools and HTTP/debuginfod clients are not driver/linker
+ # dependencies. Keep their optional LibEdit/CURL packages optional.
+ if(cpsc_llvm_library MATCHES "^LLVM(LineEditor|BOLT.*|Exegesis.*|OptDriver|HTTP|Debuginfod)$")
continue()
endif()
if(TARGET ${cpsc_llvm_library})