diff options
-rw-r--r-- | compiler-rt/test/dfsan/CMakeLists.txt | 1 | ||||
-rw-r--r-- | compiler-rt/test/dfsan/lit.site.cfg.in | 7 | ||||
-rw-r--r-- | compiler-rt/test/lsan/CMakeLists.txt | 1 | ||||
-rw-r--r-- | compiler-rt/test/lsan/lit.site.cfg.in | 7 | ||||
-rw-r--r-- | compiler-rt/test/msan/CMakeLists.txt | 1 | ||||
-rw-r--r-- | compiler-rt/test/msan/lit.site.cfg.in | 8 | ||||
-rw-r--r-- | compiler-rt/test/sanitizer_common/lit.site.cfg.in | 6 | ||||
-rw-r--r-- | compiler-rt/test/tsan/CMakeLists.txt | 1 | ||||
-rw-r--r-- | compiler-rt/test/tsan/lit.cfg | 2 | ||||
-rw-r--r-- | compiler-rt/test/tsan/lit.site.cfg.in | 2 | ||||
-rw-r--r-- | compiler-rt/test/ubsan/lit.site.cfg.in | 6 |
11 files changed, 25 insertions, 17 deletions
diff --git a/compiler-rt/test/dfsan/CMakeLists.txt b/compiler-rt/test/dfsan/CMakeLists.txt index 37379535105..8f281ae6e89 100644 --- a/compiler-rt/test/dfsan/CMakeLists.txt +++ b/compiler-rt/test/dfsan/CMakeLists.txt @@ -8,6 +8,7 @@ if(APPLE) endif() foreach(arch ${DFSAN_TEST_ARCH}) + set(DFSAN_TEST_TARGET_ARCH ${arch}) string(TOLOWER "-${arch}" DFSAN_TEST_CONFIG_SUFFIX) if(ANDROID OR ${arch} MATCHES "arm|aarch64") # This is only true if we are cross-compiling. diff --git a/compiler-rt/test/dfsan/lit.site.cfg.in b/compiler-rt/test/dfsan/lit.site.cfg.in index a4e32a1def7..42589c3ddf4 100644 --- a/compiler-rt/test/dfsan/lit.site.cfg.in +++ b/compiler-rt/test/dfsan/lit.site.cfg.in @@ -1,12 +1,13 @@ ## Autogenerated by LLVM/Clang configuration. # Do not edit! -# Load common config for all compiler-rt lit tests. -lit_config.load_config(config, "@COMPILER_RT_BINARY_DIR@/test/lit.common.configured") - # Tool-specific config options. config.name_suffix = "@DFSAN_TEST_CONFIG_SUFFIX@" config.target_cflags = "@DFSAN_TEST_TARGET_CFLAGS@" +config.target_arch = "@DFSAN_TEST_TARGET_ARCH@" + +# Load common config for all compiler-rt lit tests. +lit_config.load_config(config, "@COMPILER_RT_BINARY_DIR@/test/lit.common.configured") # Load tool-specific config that would do the real work. lit_config.load_config(config, "@DFSAN_LIT_TESTS_DIR@/lit.cfg") diff --git a/compiler-rt/test/lsan/CMakeLists.txt b/compiler-rt/test/lsan/CMakeLists.txt index d2ac402bd05..765fd159512 100644 --- a/compiler-rt/test/lsan/CMakeLists.txt +++ b/compiler-rt/test/lsan/CMakeLists.txt @@ -8,6 +8,7 @@ if(APPLE) endif() foreach(arch ${LSAN_TEST_ARCH}) + set(LSAN_TEST_TARGET_ARCH ${arch}) string(TOLOWER "-${arch}" LSAN_TEST_CONFIG_SUFFIX) if(ANDROID OR ${arch} MATCHES "arm|aarch64") # This is only true if we are cross-compiling. diff --git a/compiler-rt/test/lsan/lit.site.cfg.in b/compiler-rt/test/lsan/lit.site.cfg.in index c703d0da48b..76ecf22aff2 100644 --- a/compiler-rt/test/lsan/lit.site.cfg.in +++ b/compiler-rt/test/lsan/lit.site.cfg.in @@ -1,13 +1,14 @@ ## Autogenerated by LLVM/Clang configuration. # Do not edit! -# Load common config for all compiler-rt lit tests. -lit_config.load_config(config, "@COMPILER_RT_BINARY_DIR@/test/lit.common.configured") - # Tool-specific config options. config.name_suffix = "@LSAN_TEST_CONFIG_SUFFIX@" config.target_cflags = "@LSAN_TEST_TARGET_CFLAGS@" config.lsan_lit_test_mode = "@LSAN_LIT_TEST_MODE@" +config.target_arch = "@LSAN_TEST_TARGET_ARCH@" + +# Load common config for all compiler-rt lit tests. +lit_config.load_config(config, "@COMPILER_RT_BINARY_DIR@/test/lit.common.configured") # Load tool-specific config that would do the real work. lit_config.load_config(config, "@LSAN_LIT_SOURCE_DIR@/lit.common.cfg") diff --git a/compiler-rt/test/msan/CMakeLists.txt b/compiler-rt/test/msan/CMakeLists.txt index 67429dd8e80..5e890612281 100644 --- a/compiler-rt/test/msan/CMakeLists.txt +++ b/compiler-rt/test/msan/CMakeLists.txt @@ -8,6 +8,7 @@ if(APPLE) endif() foreach(arch ${MSAN_TEST_ARCH}) + set(MSAN_TEST_TARGET_ARCH ${arch}) string(TOLOWER "-${arch}" MSAN_TEST_CONFIG_SUFFIX) if(ANDROID OR ${arch} MATCHES "arm|aarch64") # This is only true if we are cross-compiling. diff --git a/compiler-rt/test/msan/lit.site.cfg.in b/compiler-rt/test/msan/lit.site.cfg.in index 4a2a98e453d..a750838be6a 100644 --- a/compiler-rt/test/msan/lit.site.cfg.in +++ b/compiler-rt/test/msan/lit.site.cfg.in @@ -1,11 +1,13 @@ ## Autogenerated by LLVM/Clang configuration. # Do not edit! -# Load common config for all compiler-rt lit tests. -lit_config.load_config(config, "@COMPILER_RT_BINARY_DIR@/test/lit.common.configured") - # Tool-specific config options. config.name_suffix = "@MSAN_TEST_CONFIG_SUFFIX@" config.target_cflags = "@MSAN_TEST_TARGET_CFLAGS@" +config.target_arch = "@MSAN_TEST_TARGET_ARCH@" + +# Load common config for all compiler-rt lit tests. +lit_config.load_config(config, "@COMPILER_RT_BINARY_DIR@/test/lit.common.configured") + # Load tool-specific config that would do the real work. lit_config.load_config(config, "@MSAN_LIT_SOURCE_DIR@/lit.cfg") diff --git a/compiler-rt/test/sanitizer_common/lit.site.cfg.in b/compiler-rt/test/sanitizer_common/lit.site.cfg.in index b1e34c8a647..deb5ebab053 100644 --- a/compiler-rt/test/sanitizer_common/lit.site.cfg.in +++ b/compiler-rt/test/sanitizer_common/lit.site.cfg.in @@ -1,12 +1,12 @@ -# Load common config for all compiler-rt lit tests. -lit_config.load_config(config, "@COMPILER_RT_BINARY_DIR@/test/lit.common.configured") - # Tool-specific config options. config.name_suffix = "@CONFIG_NAME@" config.tool_name = "@SANITIZER_COMMON_LIT_TEST_MODE@" config.target_cflags = "@SANITIZER_COMMON_TEST_TARGET_CFLAGS@" config.target_arch = "@SANITIZER_COMMON_TEST_TARGET_ARCH@" +# Load common config for all compiler-rt lit tests. +lit_config.load_config(config, "@COMPILER_RT_BINARY_DIR@/test/lit.common.configured") + # Load tool-specific config that would do the real work. lit_config.load_config(config, "@SANITIZER_COMMON_LIT_SOURCE_DIR@/lit.common.cfg") diff --git a/compiler-rt/test/tsan/CMakeLists.txt b/compiler-rt/test/tsan/CMakeLists.txt index a058602659c..c6cb985fc7a 100644 --- a/compiler-rt/test/tsan/CMakeLists.txt +++ b/compiler-rt/test/tsan/CMakeLists.txt @@ -22,6 +22,7 @@ if(APPLE) endif() foreach(arch ${TSAN_TEST_ARCH}) + set(TSAN_TEST_TARGET_ARCH ${arch}) string(TOLOWER "-${arch}" TSAN_TEST_CONFIG_SUFFIX) if(ANDROID OR ${arch} MATCHES "arm|aarch64") # This is only true if we are cross-compiling. diff --git a/compiler-rt/test/tsan/lit.cfg b/compiler-rt/test/tsan/lit.cfg index aa74ad84918..1fc1eccd15e 100644 --- a/compiler-rt/test/tsan/lit.cfg +++ b/compiler-rt/test/tsan/lit.cfg @@ -50,7 +50,7 @@ clang_tsan_cxxflags = config.cxx_mode_flags + clang_tsan_cflags if config.has_libcxx and config.host_os != 'Darwin': # FIXME: Dehardcode this path somehow. libcxx_path = os.path.join(config.compiler_rt_obj_root, "lib", - "tsan", "libcxx_tsan_" + config.arch) + "tsan", "libcxx_tsan_" + config.target_arch) libcxx_incdir = os.path.join(libcxx_path, "include", "c++", "v1") libcxx_libdir = os.path.join(libcxx_path, "lib") libcxx_so = os.path.join(libcxx_libdir, "libc++.so") diff --git a/compiler-rt/test/tsan/lit.site.cfg.in b/compiler-rt/test/tsan/lit.site.cfg.in index 08d4c1e00c7..14c65a8974d 100644 --- a/compiler-rt/test/tsan/lit.site.cfg.in +++ b/compiler-rt/test/tsan/lit.site.cfg.in @@ -2,9 +2,9 @@ # Do not edit! config.name_suffix = "@TSAN_TEST_CONFIG_SUFFIX@" -config.arch = "@arch@" config.has_libcxx = @TSAN_HAS_LIBCXX@ config.target_cflags = "@TSAN_TEST_TARGET_CFLAGS@" +config.target_arch = "@TSAN_TEST_TARGET_ARCH@" # Load common config for all compiler-rt lit tests. lit_config.load_config(config, "@COMPILER_RT_BINARY_DIR@/test/lit.common.configured") diff --git a/compiler-rt/test/ubsan/lit.site.cfg.in b/compiler-rt/test/ubsan/lit.site.cfg.in index 1b06881b352..14b0fd20d77 100644 --- a/compiler-rt/test/ubsan/lit.site.cfg.in +++ b/compiler-rt/test/ubsan/lit.site.cfg.in @@ -1,10 +1,10 @@ -# Load common config for all compiler-rt lit tests. -lit_config.load_config(config, "@COMPILER_RT_BINARY_DIR@/test/lit.common.configured") - # Tool-specific config options. config.ubsan_lit_test_mode = "@UBSAN_LIT_TEST_MODE@" config.target_cflags = "@UBSAN_TEST_TARGET_CFLAGS@" config.target_arch = "@UBSAN_TEST_TARGET_ARCH@" +# Load common config for all compiler-rt lit tests. +lit_config.load_config(config, "@COMPILER_RT_BINARY_DIR@/test/lit.common.configured") + # Load tool-specific config that would do the real work. lit_config.load_config(config, "@UBSAN_LIT_TESTS_DIR@/lit.common.cfg") |