From 2fa822edd6f6891e70d26fcfd4eff90d04669a7d Mon Sep 17 00:00:00 2001 From: _ov4 Date: Fri, 16 Oct 2026 08:41:13 +0000 Subject: 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 --- cmake/NativeCompiler.cmake | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'cmake/NativeCompiler.cmake') 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}) -- cgit v1.3.1-4-g156e