Skip to content

[MLIR] Use mlir_target_link_libraries with MLIRTestIRDLToCppDialect #143435

New issue

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

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

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Jun 10, 2025

Conversation

tuliom
Copy link
Contributor

@tuliom tuliom commented Jun 9, 2025

Replace LINK_LIBS with mlir_target_link_libraries.
Fixes #143246.

Suggested-by: Nikita Popov [email protected]

Replace LINK_LIBS with mlir_target_link_libraries.
Fixes llvm#143246.

Suggested-by: Nikita Popov <[email protected]>
@llvmbot llvmbot added the mlir label Jun 9, 2025
@llvmbot
Copy link
Member

llvmbot commented Jun 9, 2025

@llvm/pr-subscribers-mlir

Author: Tulio Magno Quites Machado Filho (tuliom)

Changes

Replace LINK_LIBS with mlir_target_link_libraries.
Fixes #143246.

Suggested-by: Nikita Popov <[email protected]>


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

1 Files Affected:

  • (modified) mlir/test/lib/Dialect/TestIRDLToCpp/CMakeLists.txt (+2-1)
diff --git a/mlir/test/lib/Dialect/TestIRDLToCpp/CMakeLists.txt b/mlir/test/lib/Dialect/TestIRDLToCpp/CMakeLists.txt
index 98a4bd3058a2a..103bc94d86920 100644
--- a/mlir/test/lib/Dialect/TestIRDLToCpp/CMakeLists.txt
+++ b/mlir/test/lib/Dialect/TestIRDLToCpp/CMakeLists.txt
@@ -7,8 +7,9 @@ add_mlir_library(MLIRTestIRDLToCppDialect
 
   DEPENDS
   TestIRDLToCppGen
+)
 
-  LINK_LIBS PUBLIC
+mlir_target_link_libraries(MLIRTestIRDLToCppDialect PUBLIC
   MLIRIR
   MLIRPass
   MLIRTransforms

Copy link
Contributor

@nikic nikic left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@tuliom tuliom merged commit 5e0e6a0 into llvm:main Jun 10, 2025
9 checks passed
rorth pushed a commit to rorth/llvm-project that referenced this pull request Jun 11, 2025
…lvm#143435)

Replace LINK_LIBS with mlir_target_link_libraries.
Fixes llvm#143246.

Suggested-by: Nikita Popov <[email protected]>
tomtor pushed a commit to tomtor/llvm-project that referenced this pull request Jun 14, 2025
…lvm#143435)

Replace LINK_LIBS with mlir_target_link_libraries.
Fixes llvm#143246.

Suggested-by: Nikita Popov <[email protected]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

MLIR Regression: 54 tests started to fail recently
4 participants