[Mlir-commits] [mlir] bd701ab - Fix MLIR Python bindings build (NFC)

Mehdi Amini llvmlistbot at llvm.org
Thu Nov 5 13:17:57 PST 2020


Author: Mehdi Amini
Date: 2020-11-05T21:16:27Z
New Revision: bd701ab49a2f996e712563acbf7e1a798a036752

URL: https://github.com/llvm/llvm-project/commit/bd701ab49a2f996e712563acbf7e1a798a036752
DIFF: https://github.com/llvm/llvm-project/commit/bd701ab49a2f996e712563acbf7e1a798a036752.diff

LOG: Fix MLIR Python bindings build (NFC)

The CMake macro refactoring had a hardcoded value left instead of using
the function argument.
Didn't catch it locally before because it required a clean build to
trigger.

Added: 
    

Modified: 
    mlir/cmake/modules/AddMLIRPythonExtension.cmake

Removed: 
    


################################################################################
diff  --git a/mlir/cmake/modules/AddMLIRPythonExtension.cmake b/mlir/cmake/modules/AddMLIRPythonExtension.cmake
index 5741f512ab9f..e5e81d6a87c2 100644
--- a/mlir/cmake/modules/AddMLIRPythonExtension.cmake
+++ b/mlir/cmake/modules/AddMLIRPythonExtension.cmake
@@ -73,7 +73,7 @@ function(add_mlir_python_extension libname extname)
     # project separation perspective and a discussion on how to better
     # segment MLIR libraries needs to happen.
     LIBRARY_OUTPUT_DIRECTORY ${LLVM_BINARY_DIR}/python
-    OUTPUT_NAME "_mlirTransforms"
+    OUTPUT_NAME "${extname}"
     PREFIX "${PYTHON_MODULE_PREFIX}"
     SUFFIX "${PYTHON_MODULE_SUFFIX}${PYTHON_MODULE_EXTENSION}"
   )


        


More information about the Mlir-commits mailing list