[compiler-rt] r245713 - [CMake] Fixing haswell filtering.

Chris Bieneman via llvm-commits llvm-commits at lists.llvm.org
Fri Aug 21 11:05:58 PDT 2015


Author: cbieneman
Date: Fri Aug 21 13:05:57 2015
New Revision: 245713

URL: http://llvm.org/viewvc/llvm-project?rev=245713&view=rev
Log:
[CMake] Fixing haswell filtering.

Turns out this wasn't working at all.

Modified:
    compiler-rt/trunk/cmake/Modules/CompilerRTDarwinUtils.cmake

Modified: compiler-rt/trunk/cmake/Modules/CompilerRTDarwinUtils.cmake
URL: http://llvm.org/viewvc/llvm-project/compiler-rt/trunk/cmake/Modules/CompilerRTDarwinUtils.cmake?rev=245713&r1=245712&r2=245713&view=diff
==============================================================================
--- compiler-rt/trunk/cmake/Modules/CompilerRTDarwinUtils.cmake (original)
+++ compiler-rt/trunk/cmake/Modules/CompilerRTDarwinUtils.cmake Fri Aug 21 13:05:57 2015
@@ -89,8 +89,8 @@ function(darwin_filter_host_archs input
   string(REGEX MATCH "hw.cpusubtype: ([0-9]*)"
          SUBTYPE_MATCHED "${SUBTYPE}")
   set(HASWELL_SUPPORTED Off)
-  if(ARCHES_MATCHED)
-    if(CMAKE_MATCH_1 GREATER_OR_EQUAL_TO 8)
+  if(SUBTYPE_MATCHED)
+    if(${CMAKE_MATCH_1} GREATER 7)
       set(HASWELL_SUPPORTED On)
     endif()
   endif()




More information about the llvm-commits mailing list