diff options
author | Ian Anderson <iana@apple.com> | 2025-01-10 15:50:54 -0800 |
---|---|---|
committer | GitHub <noreply@github.com> | 2025-01-10 15:50:54 -0800 |
commit | 8a1174f06cb69c92290a2231ede0e2a8e8460e0c (patch) | |
tree | e1728ce64db44ac64af69f07ed9ed99b6ec7825d /clang/lib/Frontend/InitPreprocessor.cpp | |
parent | 37f42cfb9a138409f19d31deeaa867ce2165d08f (diff) | |
download | llvm-8a1174f06cb69c92290a2231ede0e2a8e8460e0c.zip llvm-8a1174f06cb69c92290a2231ede0e2a8e8460e0c.tar.gz llvm-8a1174f06cb69c92290a2231ede0e2a8e8460e0c.tar.bz2 |
[Darwin][Driver][clang] arm64-apple-none-macho is missing the Apple macros from arm-apple-none-macho (#122427)
arm-apple-none-macho uses DarwinTargetInfo which provides several Apple
specific macros. arm64-apple-none-macho however just uses the generic
AArch64leTargetInfo and doesn't get any of those macros. It's not clear
if everything from DarwinTargetInfo is desirable for
arm64-apple-none-macho, so make an AppleMachOTargetInfo to hold the
generic Apple macros and a few other basic things.
Diffstat (limited to 'clang/lib/Frontend/InitPreprocessor.cpp')
-rw-r--r-- | clang/lib/Frontend/InitPreprocessor.cpp | 5 |
1 files changed, 0 insertions, 5 deletions
diff --git a/clang/lib/Frontend/InitPreprocessor.cpp b/clang/lib/Frontend/InitPreprocessor.cpp index 8eba766..29723b5 100644 --- a/clang/lib/Frontend/InitPreprocessor.cpp +++ b/clang/lib/Frontend/InitPreprocessor.cpp @@ -1507,11 +1507,6 @@ static void InitializePredefinedMacros(const TargetInfo &TI, // ELF targets define __ELF__ if (TI.getTriple().isOSBinFormatELF()) Builder.defineMacro("__ELF__"); - else if (TI.getTriple().isAppleMachO()) - // Apple MachO targets define __MACH__ even when not using DarwinTargetInfo. - // Hurd will also define this in some circumstances, but that's done in - // HurdTargetInfo. Windows targets don't define this. - Builder.defineMacro("__MACH__"); // Target OS macro definitions. if (PPOpts.DefineTargetOSMacros) { |