[clang] [clang][PAC] ptrauth_qualifier and ptrauth_intrinsic should only be available on Darwin (PR #153912)
Oliver Hunt via cfe-commits
cfe-commits at lists.llvm.org
Mon Aug 18 06:13:18 PDT 2025
================
@@ -1528,6 +1528,9 @@ static void InitializePredefinedMacros(const TargetInfo &TI,
#undef TARGET_OS
}
+ if (LangOpts.PointerAuthIntrinsics)
+ Builder.defineMacro("__PTRAUTH__");
----------------
ojhunt wrote:
I think the complexity of the ptrauth abi surface area means that I don't think any single value can really represent it - there's significant variation for us in userspace vs kernel vs other constrained environments vs what the linux folk are doing.
I think any dev who does need to work at this level will need to be directly detecting each single mode that is active
https://github.com/llvm/llvm-project/pull/153912
More information about the cfe-commits
mailing list