[PATCH] D22866: ass through COMPILER_RT_DEFAULT_TARGET_ARCH for builtins

Jonas Hahnfeld via llvm-commits llvm-commits at lists.llvm.org
Wed Jul 27 07:12:49 PDT 2016


Hahnfeld created this revision.
Hahnfeld added a reviewer: beanz.
Hahnfeld added a subscriber: llvm-commits.

This is needed to be set in `test_targets()` for `NOT APPLE`, otherwise
the list of supported architectures would be empty.

https://reviews.llvm.org/D22866

Files:
  runtimes/CMakeLists.txt

Index: runtimes/CMakeLists.txt
===================================================================
--- runtimes/CMakeLists.txt
+++ runtimes/CMakeLists.txt
@@ -58,6 +58,8 @@
   # is required because the other runtimes need the builtin libraries present
   # before the just-built compiler can pass the configuration tests.
   if(EXISTS ${CMAKE_CURRENT_SOURCE_DIR}/compiler-rt)
+    string(REPLACE "-" ";" TARGET_TRIPLE_LIST ${TARGET_TRIPLE})
+    list(GET TARGET_TRIPLE_LIST 0 COMPILER_RT_DEFAULT_TARGET_ARCH)
     llvm_ExternalProject_Add(builtins
                              ${CMAKE_CURRENT_SOURCE_DIR}/compiler-rt/lib/builtins
                              PASSTHROUGH_PREFIXES COMPILER_RT


-------------- next part --------------
A non-text attachment was scrubbed...
Name: D22866.65737.patch
Type: text/x-patch
Size: 694 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20160727/49d7d765/attachment.bin>


More information about the llvm-commits mailing list