mirror of
https://github.com/capstone-engine/llvm-capstone.git
synced 2024-12-14 11:39:35 +00:00
57a9bccec7
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
16 lines
464 B
CMake
16 lines
464 B
CMake
add_subdirectory(mlir-lsp-server)
|
|
add_subdirectory(mlir-opt)
|
|
add_subdirectory(mlir-parser-fuzzer)
|
|
add_subdirectory(mlir-pdll-lsp-server)
|
|
add_subdirectory(mlir-reduce)
|
|
add_subdirectory(mlir-shlib)
|
|
add_subdirectory(mlir-spirv-cpu-runner)
|
|
add_subdirectory(mlir-translate)
|
|
add_subdirectory(mlir-vulkan-runner)
|
|
add_subdirectory(tblgen-lsp-server)
|
|
|
|
# mlir-cpu-runner requires ExecutionEngine.
|
|
if(MLIR_ENABLE_EXECUTION_ENGINE)
|
|
add_subdirectory(mlir-cpu-runner)
|
|
endif()
|