Skip to content

Commit

Permalink
improve get_platform_name macro to avoid potential problems with arm
Browse files Browse the repository at this point in the history
  • Loading branch information
syrel committed Jun 20, 2021
1 parent 733a13c commit 0b85a72
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion macros.cmake
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ endmacro()

macro(get_platform_name VARNAME)
# See https://github.com/pharo-project/opensmalltalk-vm/issues/270
if(${CMAKE_SYSTEM_PROCESSOR} MATCHES ".*64.*")
if(${CMAKE_SYSTEM_PROCESSOR} MATCHES "^(AMD64|x64)$")
set(${VARNAME} ${CMAKE_SYSTEM_NAME}-x86_64)
else()
set(${VARNAME} ${CMAKE_SYSTEM_NAME}-${CMAKE_SYSTEM_PROCESSOR})
Expand Down

0 comments on commit 0b85a72

Please sign in to comment.