From b7880430b0e33c76ffd443d4906840383958af26 Mon Sep 17 00:00:00 2001 From: hooger Date: Fri, 4 Jul 2025 16:11:54 +0200 Subject: [PATCH] add support for aarch64 on Linux (e.g. Jetson) Although Linux-ARM would also work, Linux-ARM64 is used. The idea is that `Print[StandardForm[$SystemID]]` returns `Linux-ARM64` on such systems. --- CMake/Mathematica/FindMathematica.cmake | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/CMake/Mathematica/FindMathematica.cmake b/CMake/Mathematica/FindMathematica.cmake index abf5265..7899b0c 100644 --- a/CMake/Mathematica/FindMathematica.cmake +++ b/CMake/Mathematica/FindMathematica.cmake @@ -398,6 +398,8 @@ macro (_systemNameToSystemID _systemName _systemProcessor _outSystemIDs) set (${_outSystemIDs} "Linux-IA64") elseif ("${_systemProcessor}" MATCHES "^arm") set (${_outSystemIDs} "Linux-ARM") + elseif ("${_systemProcessor}" MATCHES "^aarch64") + set (${_outSystemIDs} "Linux-ARM64") endif() elseif ("${_systemName}" STREQUAL "SunOS") if ("${_systemProcessor}" MATCHES "^sparc") @@ -526,22 +528,22 @@ macro (_get_supported_systemIDs _version _outSystemIDs) if (NOT "${_version}" VERSION_LESS "12.3") set (${_outSystemIDs} "Windows-x86-64" - "Linux-x86-64" "Linux-ARM" + "Linux-x86-64" "Linux-ARM" "Linux-ARM64" "MacOSX-x86-64" "MacOSX-ARM64") elseif (NOT "${_version}" VERSION_LESS "12.1") set (${_outSystemIDs} "Windows-x86-64" - "Linux-x86-64" "Linux-ARM" + "Linux-x86-64" "Linux-ARM" "Linux-ARM64" "MacOSX-x86-64") elseif (NOT "${_version}" VERSION_LESS "11.3") set (${_outSystemIDs} "Windows" "Windows-x86-64" - "Linux-x86-64" "Linux-ARM" + "Linux-x86-64" "Linux-ARM" "Linux-ARM64" "MacOSX-x86-64") elseif (NOT "${_version}" VERSION_LESS "10.0") set (${_outSystemIDs} "Windows" "Windows-x86-64" - "Linux" "Linux-x86-64" "Linux-ARM" + "Linux" "Linux-x86-64" "Linux-ARM" "Linux-ARM64" "MacOSX-x86-64") elseif (NOT "${_version}" VERSION_LESS "9.0") set (${_outSystemIDs}