Skip to content

Conversation

@llvmbot
Copy link
Member

@llvmbot llvmbot commented Feb 6, 2025

Backport 7c695e4

Requested by: @nikic

@llvmbot llvmbot added this to the LLVM 20.X Release milestone Feb 6, 2025
@llvmbot
Copy link
Member Author

llvmbot commented Feb 6, 2025

@mgorny What do you think about merging this PR to the release branch?

@llvmbot llvmbot requested a review from mgorny February 6, 2025 13:18
@llvmbot llvmbot added flang:driver flang Flang issues not falling into any other category labels Feb 6, 2025
@llvmbot
Copy link
Member Author

llvmbot commented Feb 6, 2025

@llvm/pr-subscribers-flang-driver

Author: None (llvmbot)

Changes

Backport 7c695e4

Requested by: @nikic


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

1 Files Affected:

  • (modified) flang/unittests/Frontend/CMakeLists.txt (+5-1)
diff --git a/flang/unittests/Frontend/CMakeLists.txt b/flang/unittests/Frontend/CMakeLists.txt
index 9177997f41f53ac..2e3e7cb596c5802 100644
--- a/flang/unittests/Frontend/CMakeLists.txt
+++ b/flang/unittests/Frontend/CMakeLists.txt
@@ -12,7 +12,6 @@ add_flang_unittest(FlangFrontendTests
 
 target_link_libraries(FlangFrontendTests
   PRIVATE
-  clangBasic
   flangFrontend
   flangFrontendTool
   FortranLower
@@ -22,6 +21,11 @@ target_link_libraries(FlangFrontendTests
   FortranEvaluate
 )
 
+clang_target_link_libraries(FlangFrontendTests
+  PRIVATE
+  clangBasic
+)
+
 mlir_target_link_libraries(FlangFrontendTests
   PRIVATE
   MLIRIR

…126037)

This dependency is part of libclang-cpp, so it should use
clang_target_link_libraries.

(cherry picked from commit 7c695e4)
@tstellar tstellar merged commit 7fda02c into llvm:release/20.x Feb 10, 2025
6 of 8 checks passed
@github-actions
Copy link

@nikic (or anyone else). If you would like to add a note about this fix in the release notes (completely optional). Please reply to this comment with a one or two sentence description of the fix. When you are done, please add the release:note label to this PR.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

flang:driver flang Flang issues not falling into any other category

Projects

Development

Successfully merging this pull request may close these issues.

4 participants