diff options
| author | _ov4 <ov4@ov4.org> | 2026-10-16 08:41:13 +0000 |
|---|---|---|
| committer | _ov4 <ov4@ov4.org> | 2026-10-16 08:41:13 +0000 |
| commit | 2fa822edd6f6891e70d26fcfd4eff90d04669a7d (patch) | |
| tree | 599de9179953c44a9c215ef29b8cd2de6f128c89 | |
| parent | d74e6f5278e67f42e9a020f81c9eb0272f624618 (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>
| -rw-r--r-- | cmake/NativeCompiler.cmake | 6 |
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}) |
