Skip to content

Commit

Permalink
Fix target detection for i686 (#5675)
Browse files Browse the repository at this point in the history
(cherry picked from commit 813eadc)
  • Loading branch information
alexreinking committed Feb 13, 2021
1 parent 7ebe8cf commit e037a85
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion cmake/HalideTargetHelpers.cmake
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ function(_Halide_cmake_target OUTVAR)
# Get arch from CMake
string(TOLOWER "${CMAKE_SYSTEM_PROCESSOR}" arch)
list(TRANSFORM arch REPLACE "^.*(x86|arm|mips|powerpc|hexagon|wasm|riscv).*$" "\\1")
list(TRANSFORM arch REPLACE "^i.?86.+$" "x86")
list(TRANSFORM arch REPLACE "^i.?86.*$" "x86")
list(TRANSFORM arch REPLACE "^(amd|ia|em)64t?$" "x86")
list(TRANSFORM arch REPLACE "^ppc(64)?$" "powerpc")
list(TRANSFORM arch REPLACE "^aarch(64)?$" "arm")
Expand Down

0 comments on commit e037a85

Please sign in to comment.