[PATCH] D12639: [compiler-rt] Fix cross build when multiple targets are enabled.

Alexey Samsonov via llvm-commits llvm-commits at lists.llvm.org
Fri Sep 4 14:13:27 PDT 2015


samsonov added a comment.

What is the exact cmake invocation you're using, and what are the errors you see? ${COMPILER_RT_TEST_TARGET_ARCH} is supposed to be used, well, in testing. It probably shouldn't affect the set of architectures we're targeting.


================
Comment at: cmake/config-ix.cmake:177
@@ -176,3 +176,3 @@
 elseif(NOT APPLE) # Supported archs for Apple platforms are generated later
-  if("${LLVM_NATIVE_ARCH}" STREQUAL "X86")
+  if("${COMPILER_RT_TEST_TARGET_ARCH}" MATCHES "x86")
     if(NOT MSVC)
----------------
This doesn't seem right - arch may be deduced to be i386


http://reviews.llvm.org/D12639





More information about the llvm-commits mailing list