[CMake] Effectively revert r230683.

Clang in 32-bit mode may choose to target different architecture
than host compiler.

llvm-svn: 230709
This commit is contained in:
Alexey Samsonov
2015-02-27 00:07:04 +00:00
parent 11d86362ae
commit 655bd0200c

View File

@@ -161,10 +161,11 @@ else()
if("${LLVM_NATIVE_ARCH}" STREQUAL "X86")
if(NOT MSVC)
test_target_arch(x86_64 "" "-m64")
# FIXME: We build runtimes for both i686 and i386, as "clang -m32" may
# target different variant than "$CMAKE_C_COMPILER -m32". This part should
# be gone after we resolve PR14109.
test_target_arch(i686 __i686__ "-m32")
if(NOT CAN_TARGET_i686)
test_target_arch(i386 __i386__ "-m32")
endif()
test_target_arch(i386 __i386__ "-m32")
else()
test_target_arch(i386 "" "")
endif()