[clang] [clang] [unittest] Fix linking against dylib (PR #175317)
via cfe-commits
cfe-commits at lists.llvm.org
Sat Jan 10 07:29:54 PST 2026
llvmbot wrote:
<!--LLVM PR SUMMARY COMMENT-->
@llvm/pr-subscribers-clang
Author: Michał Górny (mgorny)
<details>
<summary>Changes</summary>
Fix a regression introduced in #<!-- -->174513 that would cause `BasicTests` to link directly to static `LLVMTargetParser` library instead of using the component linking, to respect dylib.
---
Full diff: https://github.com/llvm/llvm-project/pull/175317.diff
1 Files Affected:
- (modified) clang/unittests/Basic/CMakeLists.txt (+1-1)
``````````diff
diff --git a/clang/unittests/Basic/CMakeLists.txt b/clang/unittests/Basic/CMakeLists.txt
index 4918d07ace22b..058243fd3fdba 100644
--- a/clang/unittests/Basic/CMakeLists.txt
+++ b/clang/unittests/Basic/CMakeLists.txt
@@ -16,8 +16,8 @@ add_distinct_clang_unittest(BasicTests
clangBasic
clangLex
LINK_LIBS
- LLVMTargetParser
LLVMTestingSupport
LLVM_COMPONENTS
Support
+ TargetParser
)
``````````
</details>
https://github.com/llvm/llvm-project/pull/175317
More information about the cfe-commits
mailing list