Skip to content

Conversation

@ian-twilightcoder
Copy link
Contributor

DarwinSDKInfo.PlatformPrefix adds use of Triple but failed to add a link to LLVMTargetParser, add that.

DarwinSDKInfo.PlatformPrefix adds use of Triple but failed to add a link to LLVMTargetParser, add that.
@llvmbot llvmbot added the clang Clang issues not falling into any other category label Jan 6, 2026
@llvmbot
Copy link
Member

llvmbot commented Jan 6, 2026

@llvm/pr-subscribers-clang

Author: Ian Anderson (ian-twilightcoder)

Changes

DarwinSDKInfo.PlatformPrefix adds use of Triple but failed to add a link to LLVMTargetParser, add that.


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

1 Files Affected:

  • (modified) clang/unittests/Basic/CMakeLists.txt (+1)
diff --git a/clang/unittests/Basic/CMakeLists.txt b/clang/unittests/Basic/CMakeLists.txt
index f20c8db00a595..4918d07ace22b 100644
--- a/clang/unittests/Basic/CMakeLists.txt
+++ b/clang/unittests/Basic/CMakeLists.txt
@@ -16,6 +16,7 @@ add_distinct_clang_unittest(BasicTests
   clangBasic
   clangLex
   LINK_LIBS
+  LLVMTargetParser
   LLVMTestingSupport
   LLVM_COMPONENTS
   Support

@Kewen12
Copy link
Contributor

Kewen12 commented Jan 6, 2026

Thanks for the fix. I tested locally and the "undefined reference" error has gone.

@Kewen12 Kewen12 merged commit 960506f into llvm:main Jan 6, 2026
12 checks passed
@ian-twilightcoder ian-twilightcoder deleted the basic-unittest-link-failure branch January 6, 2026 04:56
mahesh-attarde pushed a commit to mahesh-attarde/llvm-project that referenced this pull request Jan 6, 2026
DarwinSDKInfo.PlatformPrefix adds use of Triple but failed to add a link
to LLVMTargetParser, add that.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in 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.

3 participants