[all-commits] [llvm/llvm-project] 57a9bc: [MLIR] Fix checks for native arch
Nikita Popov via All-commits
all-commits at lists.llvm.org
Thu Aug 4 02:10:23 PDT 2022
Branch: refs/heads/main
Home: https://github.com/llvm/llvm-project
Commit: 57a9bccec7dea036dbfa1a78f1ec5e73ecf7a33c
https://github.com/llvm/llvm-project/commit/57a9bccec7dea036dbfa1a78f1ec5e73ecf7a33c
Author: Nikita Popov <npopov at redhat.com>
Date: 2022-08-04 (Thu, 04 Aug 2022)
Changed paths:
M mlir/CMakeLists.txt
M mlir/lib/CAPI/CMakeLists.txt
M mlir/lib/ExecutionEngine/CMakeLists.txt
M mlir/python/CMakeLists.txt
M mlir/test/CAPI/CMakeLists.txt
M mlir/test/CMakeLists.txt
M mlir/tools/CMakeLists.txt
M mlir/unittests/CMakeLists.txt
Log Message:
-----------
[MLIR] Fix checks for native arch
Using if (TARGET ${LLVM_NATIVE_ARCH}) only works if MLIR is built
together with LLVM, but not for standalone builds of MLIR. The
correct way to check this is
if (${LLVM_NATIVE_ARCH} IN_LIST LLVM_TARGETS_TO_BUILD), as the
LLVM build system exports LLVM_TARGETS_TO_BUILD.
To avoid repeating the same check many times, add a
MLIR_ENABLE_EXECUTION_ENGINE variable.
Differential Revision: https://reviews.llvm.org/D131071
More information about the All-commits
mailing list