Skip to content

Commit 7bfcd78

Browse files
ahmedbougachadtapuska
authored andcommitted
[clang] Use has_feature ptrauth in Apple Silicon host triple recognition.
1 parent 8fc387c commit 7bfcd78

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

llvm/cmake/config.guess

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1300,7 +1300,7 @@ EOF
13001300
(CCOPTS= $CC_FOR_BUILD -E - 2>/dev/null) | \
13011301
grep IS_64BIT_ARCH >/dev/null
13021302
then
1303-
if (echo '#ifdef __PTRAUTH_INTRINSICS__'; echo HAS_AUTH; echo '#endif') | \
1303+
if (echo '#if __has_feature(ptrauth_intrinsics) || defined(__PTRAUTH_INTRINSICS__'; echo HAS_AUTH; echo '#endif') | \
13041304
(CCOPTS= $CC_FOR_BUILD -E - 2>/dev/null) | \
13051305
grep HAS_AUTH >/dev/null
13061306
then

0 commit comments

Comments
 (0)