Fix MLIR Python bindings build (NFC)
authorMehdi Amini <joker.eph@gmail.com>
Thu, 5 Nov 2020 21:16:27 +0000 (21:16 +0000)
committerMehdi Amini <joker.eph@gmail.com>
Thu, 5 Nov 2020 21:16:27 +0000 (21:16 +0000)
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.

mlir/cmake/modules/AddMLIRPythonExtension.cmake

index 5741f51..e5e81d6 100644 (file)
@@ -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}"
   )