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
set(ENABLE_ASSERTIONS "0")
endif()
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}")
set(HOST_ARCH ${CMAKE_SYSTEM_PROCESSOR})
set(HOST_CC "${CMAKE_C_COMPILER} ${CMAKE_C_COMPILER_ARG1}")
# FIXME: autoconf and cmake produce different arch names. We should normalize
# them before getting here.
# 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:
config.unsupported = True
if 'armv7' in root.host_arch:
config.enable_assertions = @ENABLE_ASSERTIONS@
config.targets_to_build = "@TARGETS_TO_BUILD@"
config.llvm_bindings = "@LLVM_BINDINGS@".split(' ')
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@"
config.host_arch = "@HOST_ARCH@"
config.host_cc = "@HOST_CC@"
config.host_cxx = "@HOST_CXX@"