[clang] Frontend: sink vendor definitions from Basic to Frontend (PR #80364)
Kuba Mracek via cfe-commits
cfe-commits at lists.llvm.org
Sat Feb 3 15:18:11 PST 2024
================
@@ -804,6 +804,11 @@ static void InitializePredefinedMacros(const TargetInfo &TI,
}
}
+ if (TI.getTriple().getVendor() == Triple::AMD)
+ Builder.defineMacro("__AMD__");
+ if (TI.getTriple().getVendor() == Triple::Apple)
+ Builder.defineMacro("__APPLE__");
----------------
kubamracek wrote:
👍
https://github.com/llvm/llvm-project/pull/80364
More information about the cfe-commits
mailing list