[PATCH] D22473: [compiler-rt] Fix target architecture matching

Francis Ricci via llvm-commits llvm-commits at lists.llvm.org
Wed Jul 20 11:14:10 PDT 2016


This revision was automatically updated to reflect the committed changes.
Closed by commit rL276148: [compiler-rt] Fix target architecture matching (authored by fjricci).

Changed prior to commit:
  https://reviews.llvm.org/D22473?vs=64375&id=64715#toc

Repository:
  rL LLVM

https://reviews.llvm.org/D22473

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
@@ -126,7 +126,7 @@
   endif()
   if(${CAN_TARGET_${arch}})
     list(APPEND COMPILER_RT_SUPPORTED_ARCH ${arch})
-  elseif("${COMPILER_RT_DEFAULT_TARGET_ARCH}" MATCHES "${arch}" AND
+  elseif("${COMPILER_RT_DEFAULT_TARGET_ARCH}" STREQUAL "${arch}" AND
          COMPILER_RT_HAS_EXPLICIT_DEFAULT_TARGET_TRIPLE)
     # Bail out if we cannot target the architecture we plan to test.
     message(FATAL_ERROR "Cannot compile for ${arch}:\n${TARGET_${arch}_OUTPUT}")


-------------- next part --------------
A non-text attachment was scrubbed...
Name: D22473.64715.patch
Type: text/x-patch
Size: 707 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20160720/ac344cdc/attachment.bin>


More information about the llvm-commits mailing list