Reverting r226937: lit: Make MCJIT's supported arch check case insensitive
authorKuba Brecka <kuba.brecka@gmail.com>
Sat, 24 Jan 2015 01:42:44 +0000 (01:42 +0000)
committerKuba Brecka <kuba.brecka@gmail.com>
Sat, 24 Jan 2015 01:42:44 +0000 (01:42 +0000)
The r226937 commit causes ASan lit tests to be all skipped on OS X.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@226979 91177308-0d34-0410-b5e6-96231b3b80d8

cmake/modules/AddLLVM.cmake
test/ExecutionEngine/MCJIT/lit.local.cfg
test/lit.site.cfg.in

index 97f2aba3ba9a3d8eb363754b61a8919a396b0eb7..ee55c52df6e74cbb6a4e7ba42770e88d1aea6c40 100644 (file)
@@ -696,6 +696,7 @@ function(configure_lit_site_cfg input output)
     set(ENABLE_ASSERTIONS "0")
   endif()
 
+  set(HOST_OS ${CMAKE_SYSTEM_NAME})
   set(HOST_ARCH ${CMAKE_SYSTEM_PROCESSOR})
 
   set(HOST_CC "${CMAKE_C_COMPILER} ${CMAKE_C_COMPILER_ARG1}")
index 229f9e50085f055a21c352c26fea0a9bfcdafdee..f9814035773640b88f8d4008f56fff7f2c5fe12f 100644 (file)
@@ -8,8 +8,8 @@ else:
 
 # FIXME: autoconf and cmake produce different arch names. We should normalize
 # them before getting here.
-if root.host_arch.lower() not in ['i386', 'x86', 'x86_64', 'amd64', 'aarch64',
-                                  'arm', 'mips', 'powerpc', 'ppc64', 'systemz']:
+if root.host_arch not in ['i386', 'x86', 'x86_64', 'AMD64',
+                          'AArch64', 'ARM', 'Mips', 'PowerPC', 'ppc64', 'SystemZ']:
     config.unsupported = True
 
 if 'armv7' in root.host_arch:
index 0045306106b5d25840c413c78ca5a2db1a91a81f..64ad0c3984208001df130e38c67ea1bf72c979e2 100644 (file)
@@ -22,6 +22,7 @@ config.enable_shared = @ENABLE_SHARED@
 config.enable_assertions = @ENABLE_ASSERTIONS@
 config.targets_to_build = "@TARGETS_TO_BUILD@"
 config.llvm_bindings = "@LLVM_BINDINGS@".split(' ')
+config.host_os = "@HOST_OS@"
 config.host_arch = "@HOST_ARCH@"
 config.host_cc = "@HOST_CC@"
 config.host_cxx = "@HOST_CXX@"