summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorChris Bieneman <beanz@apple.com>2015-08-21 18:05:57 +0000
committerChris Bieneman <beanz@apple.com>2015-08-21 18:05:57 +0000
commit797f5b36830d85efcaff819f207ebd88571ca70c (patch)
tree09b5e7cb6cd577d2a935e7680d36d7df63405c90
parent401bb64b31ed61edb40c71461037929aede52cfc (diff)
downloadbcm5719-llvm-797f5b36830d85efcaff819f207ebd88571ca70c.tar.gz
bcm5719-llvm-797f5b36830d85efcaff819f207ebd88571ca70c.zip
[CMake] Fixing haswell filtering.
Turns out this wasn't working at all. llvm-svn: 245713
-rw-r--r--compiler-rt/cmake/Modules/CompilerRTDarwinUtils.cmake4
1 files changed, 2 insertions, 2 deletions
diff --git a/compiler-rt/cmake/Modules/CompilerRTDarwinUtils.cmake b/compiler-rt/cmake/Modules/CompilerRTDarwinUtils.cmake
index ed7a52ff507..635e4b7be62 100644
--- a/compiler-rt/cmake/Modules/CompilerRTDarwinUtils.cmake
+++ b/compiler-rt/cmake/Modules/CompilerRTDarwinUtils.cmake
@@ -89,8 +89,8 @@ function(darwin_filter_host_archs input output)
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()
OpenPOWER on IntegriCloud