aboutsummaryrefslogtreecommitdiff
path: root/devel/ispc/files/patch-CMakeLists.txt
blob: 2c540960cbaea6f9c768d35c95fc85eb1dd098fa (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
--- CMakeLists.txt.orig	2022-01-15 08:35:15 UTC
+++ CMakeLists.txt
@@ -45,12 +45,17 @@ set(ISPC_BUILD TRUE)
 project(${PROJECT_NAME})
 
 set(X86_HOST FALSE)
-if (${CMAKE_HOST_SYSTEM_PROCESSOR} MATCHES "AMD64|86")
+if (${CMAKE_HOST_SYSTEM_PROCESSOR} MATCHES "amd64|86")
     set(X86_HOST TRUE)
 endif()
 
+set(ARM_HOST FALSE)
+if (${CMAKE_HOST_SYSTEM_PROCESSOR} MATCHES "aarch64")
+    set(ARM_HOST TRUE)
+endif()
+
 option(X86_ENABLED "Enable x86 support" ${X86_HOST})
-option(ARM_ENABLED "Enable ARM support" ON)
+option(ARM_ENABLED "Enable ARM support" ${ARM_HOST})
 option(WASM_ENABLED "Enable experimental Web Assembly support" OFF)
 option(XE_ENABLED "Enable Intel Xe support" OFF)
 option(ISPC_INCLUDE_EXAMPLES "Generate build targets for the ISPC examples" ON)