[Mlir-commits] [mlir] [mlir][CMake] enable disabling MLIR_ENABLE_EXECUTION_ENGINE (PR #171060)
llvmlistbot at llvm.org
llvmlistbot at llvm.org
Sun Dec 7 15:04:20 PST 2025
llvmbot wrote:
<!--LLVM PR SUMMARY COMMENT-->
@llvm/pr-subscribers-mlir
Author: Maksim Levental (makslevental)
<details>
<summary>Changes</summary>
Currently if you pass MLIR_ENABLE_EXECUTION_ENGINE=OFF it's overwritten.
---
Full diff: https://github.com/llvm/llvm-project/pull/171060.diff
1 Files Affected:
- (modified) mlir/CMakeLists.txt (+5-2)
``````````diff
diff --git a/mlir/CMakeLists.txt b/mlir/CMakeLists.txt
index 570fb6f89dd1c..9e1e9314511e3 100644
--- a/mlir/CMakeLists.txt
+++ b/mlir/CMakeLists.txt
@@ -124,10 +124,13 @@ set_target_properties(mlir-doc PROPERTIES FOLDER "MLIR/Docs")
# Only enable execution engine if the native target is available.
if(${LLVM_NATIVE_ARCH} IN_LIST LLVM_TARGETS_TO_BUILD)
- set(MLIR_ENABLE_EXECUTION_ENGINE 1)
+ set(MLIR_ENABLE_EXECUTION_ENGINE_default 1)
else()
- set(MLIR_ENABLE_EXECUTION_ENGINE 0)
+ set(MLIR_ENABLE_EXECUTION_ENGINE_default 0)
endif()
+option(MLIR_ENABLE_EXECUTION_ENGINE
+ "Enable building the MLIR Execution Engine."
+ ${MLIR_ENABLE_EXECUTION_ENGINE_default})
# Build the ROCm conversions and run according tests if the AMDGPU backend
# is available.
``````````
</details>
https://github.com/llvm/llvm-project/pull/171060
More information about the Mlir-commits
mailing list