summaryrefslogtreecommitdiffstats
path: root/Modules
diff options
context:
space:
mode:
authorDouglas McKenzie <Douglas.McKenzie@uni.sydney.edu.au>2017-06-20 09:49:01 (GMT)
committerBrad King <brad.king@kitware.com>2017-06-20 14:04:05 (GMT)
commit72ccb9f499a09bae84cf7ee1f148926f68aace3f (patch)
tree7851048379ac9d16672d8cad380e6f7b21beb7ef /Modules
parent829ce06c352e84f9b0b5fdd6acd10429181a91ef (diff)
downloadCMake-72ccb9f499a09bae84cf7ee1f148926f68aace3f.zip
CMake-72ccb9f499a09bae84cf7ee1f148926f68aace3f.tar.gz
CMake-72ccb9f499a09bae84cf7ee1f148926f68aace3f.tar.bz2
CheckTypeSize: Add support for arm architectures
This adds detection for `armv7`, `armv7s` and `arm64` when performing type size checks on universal binaries for iOS. Fixes: #16992
Diffstat (limited to 'Modules')
-rw-r--r--Modules/CheckTypeSize.c.in6
1 files changed, 6 insertions, 0 deletions
diff --git a/Modules/CheckTypeSize.c.in b/Modules/CheckTypeSize.c.in
index b6c3688..2303c4e 100644
--- a/Modules/CheckTypeSize.c.in
+++ b/Modules/CheckTypeSize.c.in
@@ -9,6 +9,12 @@
# define KEY '_','_','p','p','c','_','_'
#elif defined(__ppc64__)
# define KEY '_','_','p','p','c','6','4','_','_'
+#elif defined(__aarch64__)
+# define KEY '_','_','a','a','r','c','h','6','4','_','_'
+#elif defined(__ARM_ARCH_7A__)
+# define KEY '_','_','A','R','M','_','A','R','C','H','_','7','A','_','_'
+#elif defined(__ARM_ARCH_7S__)
+# define KEY '_','_','A','R','M','_','A','R','C','H','_','7','S','_','_'
#endif
#define SIZE (sizeof(@type@))