[PATCH] D54612: [compiler-rt] Use exact spelling when building for default target

Petr Hosek via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Thu Nov 15 20:17:35 PST 2018


This revision was automatically updated to reflect the committed changes.
Closed by commit rL347022: [compiler-rt] Use exact spelling when building for default target (authored by phosek, committed by ).
Herald added a subscriber: delcypher.

Changed prior to commit:
  https://reviews.llvm.org/D54612?vs=174320&id=174321#toc

Repository:
  rL LLVM

https://reviews.llvm.org/D54612

Files:
  compiler-rt/trunk/cmake/Modules/CompilerRTUtils.cmake


Index: compiler-rt/trunk/cmake/Modules/CompilerRTUtils.cmake
===================================================================
--- compiler-rt/trunk/cmake/Modules/CompilerRTUtils.cmake
+++ compiler-rt/trunk/cmake/Modules/CompilerRTUtils.cmake
@@ -337,7 +337,10 @@
 function(get_compiler_rt_target arch variable)
   string(FIND ${COMPILER_RT_DEFAULT_TARGET_TRIPLE} "-" dash_index)
   string(SUBSTRING ${COMPILER_RT_DEFAULT_TARGET_TRIPLE} ${dash_index} -1 triple_suffix)
-  if(ANDROID AND ${arch} STREQUAL "i386")
+  if(COMPILER_RT_DEFAULT_TARGET_ONLY)
+    # Use exact spelling when building only for the target specified to CMake.
+    set(target "${COMPILER_RT_DEFAULT_TARGET_TRIPLE}")
+  elseif(ANDROID AND ${arch} STREQUAL "i386")
     set(target "i686${COMPILER_RT_OS_SUFFIX}${triple_suffix}")
   else()
     set(target "${arch}${triple_suffix}")


-------------- next part --------------
A non-text attachment was scrubbed...
Name: D54612.174321.patch
Type: text/x-patch
Size: 853 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20181116/6ec3f38b/attachment.bin>


More information about the llvm-commits mailing list