summarylogtreecommitdiffstats
path: root/GetArch.cmake.patch
diff options
context:
space:
mode:
Diffstat (limited to 'GetArch.cmake.patch')
-rw-r--r--GetArch.cmake.patch16
1 files changed, 16 insertions, 0 deletions
diff --git a/GetArch.cmake.patch b/GetArch.cmake.patch
new file mode 100644
index 000000000000..1b9607496497
--- /dev/null
+++ b/GetArch.cmake.patch
@@ -0,0 +1,16 @@
+diff --git a/cmake/GetArch.cmake b/cmake/GetArch.cmake
+index 0a5d7b1..97a8f9a 100644
+--- a/cmake/GetArch.cmake
++++ b/cmake/GetArch.cmake
+@@ -30,6 +30,11 @@ function (GetArch)
+ set(ARCH "aarch64")
+ endif ()
+ endif ()
++ if (EXISTS /etc/arch-release)
++ if (ARCH STREQUAL "arm64")
++ set(ARCH "aarch64")
++ endif ()
++ endif ()
+ else (NOT WIN32)
+ # Should really be i386 since we are on win32. However, it's x86_64 for now,
+ # see #2027