mirror of
https://github.com/capstone-engine/llvm-capstone.git
synced 2024-11-28 16:11:29 +00:00
[mlir] Support overriding LLVM_LIT_ARGS in standalone builds
Introduce LLVM_LIT_ARGS cache variable in standalone builds, to let the caller override the options passed by LLVM to lit calls. Once defined, this is automatically handled by LLVM's cmake logic. Differential Revision: https://reviews.llvm.org/D136556
This commit is contained in:
parent
9cedab654d
commit
f3713a9047
@ -30,6 +30,8 @@ if(MLIR_STANDALONE_BUILD)
|
||||
set(CMAKE_LIBRARY_OUTPUT_DIRECTORY
|
||||
"${CMAKE_CURRENT_BINARY_DIR}/lib${LLVM_LIBDIR_SUFFIX}")
|
||||
set(CMAKE_RUNTIME_OUTPUT_DIRECTORY "${CMAKE_CURRENT_BINARY_DIR}/bin")
|
||||
|
||||
set(LLVM_LIT_ARGS "-sv" CACHE STRING "Default options for lit")
|
||||
endif()
|
||||
|
||||
set(MLIR_TOOLS_INSTALL_DIR "${CMAKE_INSTALL_BINDIR}" CACHE PATH
|
||||
|
Loading…
Reference in New Issue
Block a user