[clang] [clang][tools] Adjust the dependency libraries of c-arcmt-test and c-index-test to meet LLVM_BUILD_STATIC=ON. (PR #89946)
via cfe-commits
cfe-commits at lists.llvm.org
Wed Apr 24 09:05:46 PDT 2024
llvmbot wrote:
<!--LLVM PR SUMMARY COMMENT-->
@llvm/pr-subscribers-clang
Author: 秋秋 (lateautumn233)
<details>
<summary>Changes</summary>
Close:https://github.com/llvm/llvm-project/issues/59507
---
Full diff: https://github.com/llvm/llvm-project/pull/89946.diff
2 Files Affected:
- (modified) clang/tools/c-arcmt-test/CMakeLists.txt (+1-1)
- (modified) clang/tools/c-index-test/CMakeLists.txt (+1-1)
``````````diff
diff --git a/clang/tools/c-arcmt-test/CMakeLists.txt b/clang/tools/c-arcmt-test/CMakeLists.txt
index 08ac93c176db12..fed19b2371a154 100644
--- a/clang/tools/c-arcmt-test/CMakeLists.txt
+++ b/clang/tools/c-arcmt-test/CMakeLists.txt
@@ -5,7 +5,7 @@ add_clang_executable(c-arcmt-test
if (LLVM_BUILD_STATIC)
target_link_libraries(c-arcmt-test
PRIVATE
- libclang_static
+ libclang
)
else()
target_link_libraries(c-arcmt-test
diff --git a/clang/tools/c-index-test/CMakeLists.txt b/clang/tools/c-index-test/CMakeLists.txt
index 0ae1b4e55244eb..5cff22022e4f0c 100644
--- a/clang/tools/c-index-test/CMakeLists.txt
+++ b/clang/tools/c-index-test/CMakeLists.txt
@@ -17,7 +17,7 @@ endif()
if (LLVM_BUILD_STATIC)
target_link_libraries(c-index-test
PRIVATE
- libclang_static
+ libclang
clangCodeGen
clangIndex
)
``````````
</details>
https://github.com/llvm/llvm-project/pull/89946
More information about the cfe-commits
mailing list