[tests] Always specify correct config.target_arch when configuring test suite.
authorAlexey Samsonov <vonosmas@gmail.com>
Tue, 23 Feb 2016 01:34:17 +0000 (01:34 +0000)
committerAlexey Samsonov <vonosmas@gmail.com>
Tue, 23 Feb 2016 01:34:17 +0000 (01:34 +0000)
llvm-svn: 261601

compiler-rt/test/dfsan/CMakeLists.txt
compiler-rt/test/dfsan/lit.site.cfg.in
compiler-rt/test/lsan/CMakeLists.txt
compiler-rt/test/lsan/lit.site.cfg.in
compiler-rt/test/msan/CMakeLists.txt
compiler-rt/test/msan/lit.site.cfg.in
compiler-rt/test/sanitizer_common/lit.site.cfg.in
compiler-rt/test/tsan/CMakeLists.txt
compiler-rt/test/tsan/lit.cfg
compiler-rt/test/tsan/lit.site.cfg.in
compiler-rt/test/ubsan/lit.site.cfg.in

index 373795351053d4ce139ce3834cdb1acdbdd65b8b..8f281ae6e894b6817592953693d30e063ee7187e 100644 (file)
@@ -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.
index a4e32a1def7be69a3f1518d1d269f4cdb2a67331..42589c3ddf4db8772708719088e5583a6c28a212 100644 (file)
@@ -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")
index d2ac402bd054d35d88b894a85cad2cf647a22a6f..765fd159512e248331263900f067c315d93986b5 100644 (file)
@@ -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.
index c703d0da48b8b1744fb36642e42491968aa9cf7b..76ecf22aff2ced6b37480edae3b35c207e82fe4b 100644 (file)
@@ -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")
index 67429dd8e8054bbd2b9f8812508554f64fa0d779..5e8906122815eba4917fb2b64c5cfebb4e1c2244 100644 (file)
@@ -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.
index 4a2a98e453ddb10885cc9d20cdf2e6c5b30a6244..a750838be6a097b879653e979ce02238c5e2631f 100644 (file)
@@ -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")
index b1e34c8a647ac271428290c69c2ed7411dc5aaf8..deb5ebab0530ab415dd47b30785663abb61fa138 100644 (file)
@@ -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")
 
index a058602659c1d943e9f49d4eca23c8fe9860d879..c6cb985fc7a286e09672b6ba713744510c483206 100644 (file)
@@ -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.
index aa74ad84918a53f498f6a90a6055cc74975a64bd..1fc1eccd15ead7cc08167ad7a13d641d401d8957 100644 (file)
@@ -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")
index 08d4c1e00c7b09e47544aa11a3380a630d8929cd..14c65a8974dfe12941e1e9f1b22f4b34b8fe1e5e 100644 (file)
@@ -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")
index 1b06881b3527a6466b19cd34ff8faf99587fec74..14b0fd20d778f12a5efaef9c44d4b8b531b6fae8 100644 (file)
@@ -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")