mirror of
https://github.com/Kitware/CMake.git
synced 2026-03-22 03:42:25 -05:00
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
This commit is contained in:
committed by
Brad King
parent
829ce06c35
commit
72ccb9f499
@@ -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@))
|
||||
|
||||
Reference in New Issue
Block a user