[Mlir-commits] [mlir] f3713a9 - [mlir] Support overriding LLVM_LIT_ARGS in standalone builds
Michał Górny
llvmlistbot at llvm.org
Sun Oct 23 20:15:27 PDT 2022
Author: Michał Górny
Date: 2022-10-24T05:14:51+02:00
New Revision: f3713a9047df995b26a3af4b3621c201bb88ef87
URL: https://github.com/llvm/llvm-project/commit/f3713a9047df995b26a3af4b3621c201bb88ef87
DIFF: https://github.com/llvm/llvm-project/commit/f3713a9047df995b26a3af4b3621c201bb88ef87.diff
LOG: [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
Added:
Modified:
mlir/CMakeLists.txt
Removed:
################################################################################
diff --git a/mlir/CMakeLists.txt b/mlir/CMakeLists.txt
index bd3d30923d210..5b6650d182a56 100644
--- a/mlir/CMakeLists.txt
+++ b/mlir/CMakeLists.txt
@@ -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
More information about the Mlir-commits
mailing list