mirror of
https://github.com/intel/llvm.git
synced 2026-01-19 09:31:59 +08:00
[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:
@@ -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()
|
||||
|
||||
Reference in New Issue
Block a user