From f3713a9047df995b26a3af4b3621c201bb88ef87 Mon Sep 17 00:00:00 2001 From: =?utf8?q?Micha=C5=82=20G=C3=B3rny?= Date: Sun, 23 Oct 2022 19:08:47 +0200 Subject: [PATCH] [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 --- mlir/CMakeLists.txt | 2 ++ 1 file changed, 2 insertions(+) diff --git a/mlir/CMakeLists.txt b/mlir/CMakeLists.txt index bd3d309..5b6650d 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 -- 2.7.4