From 0816b629c9da5aa8885c4cb3fbbf5c905d37f0ee Mon Sep 17 00:00:00 2001 From: Christian Sigg Date: Fri, 26 Aug 2022 12:04:32 +0200 Subject: [PATCH] [MLIR] Remove unused config attributes from lit.site.cfg.py Reviewed By: herhut Differential Revision: https://reviews.llvm.org/D132726 --- mlir/examples/standalone/test/lit.site.cfg.py.in | 3 --- mlir/test/Unit/lit.site.cfg.py.in | 6 ------ mlir/test/lit.site.cfg.py.in | 17 ----------------- 3 files changed, 26 deletions(-) diff --git a/mlir/examples/standalone/test/lit.site.cfg.py.in b/mlir/examples/standalone/test/lit.site.cfg.py.in index 747f8d3..8f9e557 100644 --- a/mlir/examples/standalone/test/lit.site.cfg.py.in +++ b/mlir/examples/standalone/test/lit.site.cfg.py.in @@ -1,11 +1,8 @@ @LIT_SITE_CFG_IN_HEADER@ config.llvm_tools_dir = lit_config.substitute("@LLVM_TOOLS_DIR@") -config.lit_tools_dir = "@LLVM_LIT_TOOLS_DIR@" config.mlir_obj_dir = "@MLIR_BINARY_DIR@" -config.python_executable = "@Python3_EXECUTABLE@" config.enable_bindings_python = @MLIR_ENABLE_BINDINGS_PYTHON@ -config.standalone_src_root = "@CMAKE_SOURCE_DIR@" config.standalone_obj_root = "@CMAKE_BINARY_DIR@" import lit.llvm diff --git a/mlir/test/Unit/lit.site.cfg.py.in b/mlir/test/Unit/lit.site.cfg.py.in index 42947a9..554bfcc 100644 --- a/mlir/test/Unit/lit.site.cfg.py.in +++ b/mlir/test/Unit/lit.site.cfg.py.in @@ -2,15 +2,9 @@ import sys -config.llvm_src_root = "@LLVM_SOURCE_DIR@" -config.llvm_obj_root = "@LLVM_BINARY_DIR@" config.llvm_tools_dir = lit_config.substitute("@LLVM_TOOLS_DIR@") config.llvm_build_mode = lit_config.substitute("@LLVM_BUILD_MODE@") -config.enable_shared = @ENABLE_SHARED@ -config.shlibdir = lit_config.substitute("@SHLIBDIR@") -config.mlir_src_root = "@MLIR_SOURCE_DIR@" config.mlir_obj_root = "@MLIR_BINARY_DIR@" -config.mlir_tools_dir = "@MLIR_TOOLS_DIR@" # Let the main config do the real work. lit_config.load_config(config, "@MLIR_SOURCE_DIR@/test/Unit/lit.cfg.py") diff --git a/mlir/test/lit.site.cfg.py.in b/mlir/test/lit.site.cfg.py.in index e4dea3b..cabc375 100644 --- a/mlir/test/lit.site.cfg.py.in +++ b/mlir/test/lit.site.cfg.py.in @@ -2,35 +2,18 @@ import sys -config.host_triple = "@LLVM_HOST_TRIPLE@" -config.target_triple = "@LLVM_TARGET_TRIPLE@" -config.llvm_src_root = "@LLVM_SOURCE_DIR@" -config.llvm_obj_root = "@LLVM_BINARY_DIR@" config.llvm_tools_dir = lit_config.substitute("@LLVM_TOOLS_DIR@") -config.llvm_lib_dir = lit_config.substitute("@LLVM_LIBS_DIR@") -config.llvm_shlib_dir = lit_config.substitute("@SHLIBDIR@") config.llvm_shlib_ext = "@SHLIBEXT@" -config.llvm_exe_ext = "@EXEEXT@" -config.lit_tools_dir = "@LLVM_LIT_TOOLS_DIR@" config.python_executable = "@Python3_EXECUTABLE@" -config.gold_executable = "@GOLD_EXECUTABLE@" -config.ld64_executable = "@LD64_EXECUTABLE@" -config.enable_shared = @ENABLE_SHARED@ config.enable_assertions = @ENABLE_ASSERTIONS@ -config.targets_to_build = "@TARGETS_TO_BUILD@" config.native_target = "@LLVM_NATIVE_ARCH@" -config.llvm_bindings = "@LLVM_BINDINGS@".split(' ') config.host_os = "@HOST_OS@" config.host_cc = "@HOST_CC@" config.host_cxx = "@HOST_CXX@" config.enable_libcxx = "@LLVM_ENABLE_LIBCXX@" config.host_cmake = "@CMAKE_COMMAND@" config.host_cmake_generator = "@CMAKE_GENERATOR@" -# Note: ldflags can contain double-quoted paths, so must use single quotes here. -config.host_ldflags = '@HOST_LDFLAGS@' config.llvm_use_linker = "@LLVM_USE_LINKER@" -config.llvm_use_sanitizer = "@LLVM_USE_SANITIZER@" -config.llvm_host_triple = '@LLVM_HOST_TRIPLE@' config.host_arch = "@HOST_ARCH@" config.mlir_src_root = "@MLIR_SOURCE_DIR@" config.mlir_obj_root = "@MLIR_BINARY_DIR@" -- 2.7.4