summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorAlexey Samsonov <vonosmas@gmail.com>2015-02-27 00:07:04 +0000
committerAlexey Samsonov <vonosmas@gmail.com>2015-02-27 00:07:04 +0000
commit655bd0200cd2f85deb6a843db4c8c23d2f8a66bc (patch)
tree35a83a99d745deeb8a7b50a00562f41516e6e978
parent11d86362ae6e8eb16bbd193a8f6c87f29ae5252b (diff)
downloadbcm5719-llvm-655bd0200cd2f85deb6a843db4c8c23d2f8a66bc.tar.gz
bcm5719-llvm-655bd0200cd2f85deb6a843db4c8c23d2f8a66bc.zip
[CMake] Effectively revert r230683.
Clang in 32-bit mode may choose to target different architecture than host compiler. llvm-svn: 230709
-rw-r--r--compiler-rt/cmake/config-ix.cmake7
1 files changed, 4 insertions, 3 deletions
diff --git a/compiler-rt/cmake/config-ix.cmake b/compiler-rt/cmake/config-ix.cmake
index 9c4c8deeaea..1207f4c8c79 100644
--- a/compiler-rt/cmake/config-ix.cmake
+++ b/compiler-rt/cmake/config-ix.cmake
@@ -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()
OpenPOWER on IntegriCloud