Skip to content

[MLIR][Python] fix mlir python cmake script #95939

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 19, 2024

Conversation

xurui1995
Copy link
Contributor

Encountered a problem when linking multiple CAPI libs.
The COMMON_CAPI_LINK_LIBS should be multi_value_keywords here.

@llvmbot llvmbot added the mlir label Jun 18, 2024
@llvmbot
Copy link
Member

llvmbot commented Jun 18, 2024

@llvm/pr-subscribers-mlir

Author: Bimo (xurui1995)

Changes

Encountered a problem when linking multiple CAPI libs.
The COMMON_CAPI_LINK_LIBS should be multi_value_keywords here.


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

1 Files Affected:

  • (modified) mlir/cmake/modules/AddMLIRPython.cmake (+2-2)
diff --git a/mlir/cmake/modules/AddMLIRPython.cmake b/mlir/cmake/modules/AddMLIRPython.cmake
index 012380603a4c4..f030798a94ae9 100644
--- a/mlir/cmake/modules/AddMLIRPython.cmake
+++ b/mlir/cmake/modules/AddMLIRPython.cmake
@@ -203,8 +203,8 @@ endfunction()
 function(add_mlir_python_modules name)
   cmake_parse_arguments(ARG
     ""
-    "ROOT_PREFIX;INSTALL_PREFIX;COMMON_CAPI_LINK_LIBS"
-    "DECLARED_SOURCES"
+    "ROOT_PREFIX;INSTALL_PREFIX"
+    "COMMON_CAPI_LINK_LIBS;DECLARED_SOURCES"
     ${ARGN})
   # Helper to process an individual target.
   function(_process_target modules_target sources_target)

@xurui1995 xurui1995 added cmake Build system in general and CMake in particular mlir:python MLIR Python bindings labels Jun 18, 2024
@xurui1995 xurui1995 requested review from sstamenova and ftynse June 19, 2024 01:47
@xurui1995 xurui1995 merged commit 99c43e3 into llvm:main Jun 19, 2024
11 checks passed
AlexisPerry pushed a commit to llvm-project-tlp/llvm-project that referenced this pull request Jul 9, 2024
Encountered a problem when linking multiple CAPI libs.
The `COMMON_CAPI_LINK_LIBS` should be multi_value_keywords here.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
cmake Build system in general and CMake in particular mlir:python MLIR Python bindings mlir
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants