summaryrefslogtreecommitdiffstats
path: root/Modules
diff options
context:
space:
mode:
authorBrad King <brad.king@kitware.com>2020-02-28 18:44:49 (GMT)
committerBrad King <brad.king@kitware.com>2020-02-28 18:57:31 (GMT)
commita09d646b7c0817be750ec86d13e5a3ee289d017b (patch)
treefbc58ec7eb80e3f9572649f4a285538df4e9c167 /Modules
parent0842a3d030f1fc46554c174cf572fb9da7952373 (diff)
downloadCMake-a09d646b7c0817be750ec86d13e5a3ee289d017b.zip
CMake-a09d646b7c0817be750ec86d13e5a3ee289d017b.tar.gz
CMake-a09d646b7c0817be750ec86d13e5a3ee289d017b.tar.bz2
CheckTypeSize: Fix '..._CODE' result for ppc and ppc64
Check for ppc64 macros before plain ppc. Consider both upper and lower case variants because some compilers have only one of them. Fixes: #20368
Diffstat (limited to 'Modules')
-rw-r--r--Modules/CheckTypeSize.c.in8
1 files changed, 6 insertions, 2 deletions
diff --git a/Modules/CheckTypeSize.c.in b/Modules/CheckTypeSize.c.in
index 82035a3..fb93073 100644
--- a/Modules/CheckTypeSize.c.in
+++ b/Modules/CheckTypeSize.c.in
@@ -5,10 +5,14 @@
# define KEY '_','_','i','3','8','6'
#elif defined(__x86_64)
# define KEY '_','_','x','8','6','_','6','4'
-#elif defined(__ppc__)
-# define KEY '_','_','p','p','c','_','_'
+#elif defined(__PPC64__)
+# define KEY '_','_','P','P','C','6','4','_','_'
#elif defined(__ppc64__)
# define KEY '_','_','p','p','c','6','4','_','_'
+#elif defined(__PPC__)
+# define KEY '_','_','P','P','C','_','_'
+#elif defined(__ppc__)
+# define KEY '_','_','p','p','c','_','_'
#elif defined(__aarch64__)
# define KEY '_','_','a','a','r','c','h','6','4','_','_'
#elif defined(__ARM_ARCH_7A__)