Skip to content

[clang][test] Fix -DBUILD_SHARED_LIBS build by adding depency on Targ… #130105

New issue

Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? # to your account

Merged
merged 1 commit into from
Mar 7, 2025

Conversation

kito-cheng
Copy link
Member

@kito-cheng kito-cheng commented Mar 6, 2025

…etParser from clangTesting

Commit 979c275 (#129868) introduced a dependency on the llvm::Triple::Triple in lookupTarget. This is part of TargetParser, which wasn't listed in clang/lib/Testing/CMakeLists.txt. This broke the -DBUILD_SHARED_LIBS=True builds.

Fixes #130112

…etParser from clangTesting

Commit 979c275 (llvm#129868) introduced a
dependency on the llvm::Triple::Triple in `lookupTarget`. This is
part of TargetParser, which wasn't listed in clang/lib/Testing/CMakeLists.txt.
This broke the -DBUILD_SHARED_LIBS=True builds.
@kito-cheng kito-cheng requested a review from nikic March 6, 2025 13:35
@llvmbot llvmbot added the clang Clang issues not falling into any other category label Mar 6, 2025
@llvmbot
Copy link
Member

llvmbot commented Mar 6, 2025

@llvm/pr-subscribers-clang

Author: Kito Cheng (kito-cheng)

Changes

…etParser from clangTesting

Commit 979c275 (#129868) introduced a dependency on the llvm::Triple::Triple in lookupTarget. This is part of TargetParser, which wasn't listed in clang/lib/Testing/CMakeLists.txt. This broke the -DBUILD_SHARED_LIBS=True builds.


Full diff: https://github.com/llvm/llvm-project/pull/130105.diff

1 Files Affected:

  • (modified) clang/lib/Testing/CMakeLists.txt (+1)
diff --git a/clang/lib/Testing/CMakeLists.txt b/clang/lib/Testing/CMakeLists.txt
index 4a2400d6a107a..f4c99413d6dbf 100644
--- a/clang/lib/Testing/CMakeLists.txt
+++ b/clang/lib/Testing/CMakeLists.txt
@@ -13,6 +13,7 @@ add_llvm_library(clangTesting
   LINK_COMPONENTS
   MC
   Support
+  TargetParser
   )
 
 clang_target_link_libraries(clangTesting

@carlosgalvezp
Copy link
Contributor

Tests pass, ok to merge @nikic @kito-cheng ?

@kito-cheng kito-cheng merged commit c95dc2d into llvm:main Mar 7, 2025
13 checks passed
@kito-cheng kito-cheng deleted the kitoc/fix-build-fail branch March 10, 2025 13:45
VishMCW pushed a commit to VishMCW/llvm-project that referenced this pull request Mar 18, 2025
llvm#130105)

…etParser from clangTesting

Commit 979c275 (llvm#129868) introduced a
dependency on the llvm::Triple::Triple in `lookupTarget`. This is part
of TargetParser, which wasn't listed in
clang/lib/Testing/CMakeLists.txt. This broke the
-DBUILD_SHARED_LIBS=True builds.

Fixes llvm#130112
jph-13 pushed a commit to jph-13/llvm-project that referenced this pull request Mar 21, 2025
llvm#130105)

…etParser from clangTesting

Commit 979c275 (llvm#129868) introduced a
dependency on the llvm::Triple::Triple in `lookupTarget`. This is part
of TargetParser, which wasn't listed in
clang/lib/Testing/CMakeLists.txt. This broke the
-DBUILD_SHARED_LIBS=True builds.

Fixes llvm#130112
# for free to join this conversation on GitHub. Already have an account? # to comment
Labels
clang Clang issues not falling into any other category
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Failed to link libclangTesting.so.21.0git: undefined symbol: llvm::Triple::Triple
4 participants