[clang] [clang][PAC][darwin] Set correct default ptrauth features for arm64e-darwin (PR #153722)
Ahmed Bougacha via cfe-commits
cfe-commits at lists.llvm.org
Fri Aug 15 13:30:59 PDT 2025
================
@@ -3291,6 +3291,39 @@ void Darwin::addClangTargetOptions(
if (!RequiresSubdirectorySearch)
CC1Args.push_back("-fno-modulemap-allow-subdirectory-search");
}
+
+ if (getTriple().isArm64e()) {
+ auto EnsureDefaultPtrauthFlag = [&](OptSpecifier Pos, OptSpecifier Neg) {
----------------
ahmedbougacha wrote:
Hmm, why not the more idiomatic `hasFlag`/`hasArg` and `push_back`?
https://github.com/llvm/llvm-project/pull/153722
More information about the cfe-commits
mailing list