diff options
author | Nikita Popov <npopov@redhat.com> | 2022-08-03 15:28:49 +0200 |
---|---|---|
committer | Nikita Popov <npopov@redhat.com> | 2022-08-04 11:10:08 +0200 |
commit | 57a9bccec7dea036dbfa1a78f1ec5e73ecf7a33c (patch) | |
tree | eaf6a25d1da81a071071b8d478d4ad405928ed22 /llvm/lib/Bitcode/Writer/BitcodeWriter.cpp | |
parent | 7ce321e5b0a431d8fde69ce03d1bd7254a7dc00c (diff) | |
download | llvm-57a9bccec7dea036dbfa1a78f1ec5e73ecf7a33c.zip llvm-57a9bccec7dea036dbfa1a78f1ec5e73ecf7a33c.tar.gz llvm-57a9bccec7dea036dbfa1a78f1ec5e73ecf7a33c.tar.bz2 |
[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
Diffstat (limited to 'llvm/lib/Bitcode/Writer/BitcodeWriter.cpp')
0 files changed, 0 insertions, 0 deletions