diff options
author | Tim Northover <tnorthover@apple.com> | 2014-01-16 08:48:16 +0000 |
---|---|---|
committer | Tim Northover <tnorthover@apple.com> | 2014-01-16 08:48:16 +0000 |
commit | 157d911b42788d402b04a9cd7cbf45b0fd4541fb (patch) | |
tree | 8802de96f362b14c72bdedc4f9f7da9de6f8db3a /clang/test/Preprocessor/macho-embedded-predefines.c | |
parent | d1487261a0250aa2bca61d1eeb24ec00f801e659 (diff) | |
download | bcm5719-llvm-157d911b42788d402b04a9cd7cbf45b0fd4541fb.tar.gz bcm5719-llvm-157d911b42788d402b04a9cd7cbf45b0fd4541fb.zip |
MachO: use *-*-*-macho for MachO embedded targets.
Previously we had bodged together some hacks mapping MachO embedded
targets (i.e. mainly ARM v6M and v7M) to the "*-*-darwin-eabi" triple.
This is incorrect in both details (they don't run Darwin and they're
not EABI in any real sense).
This commit appropriates the existing "MachO" environment for the
purpose instead.
llvm-svn: 199367
Diffstat (limited to 'clang/test/Preprocessor/macho-embedded-predefines.c')
-rw-r--r-- | clang/test/Preprocessor/macho-embedded-predefines.c | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/clang/test/Preprocessor/macho-embedded-predefines.c b/clang/test/Preprocessor/macho-embedded-predefines.c new file mode 100644 index 00000000000..8356bc9924e --- /dev/null +++ b/clang/test/Preprocessor/macho-embedded-predefines.c @@ -0,0 +1,5 @@ +// RUN: %clang_cc1 -E -dM -triple thumbv7m-apple-unknown-macho %s | FileCheck %s + +// CHECK: #define __APPLE_CC__ +// CHECK: #define __APPLE__ +// CHECK-NOT: #define __MACH__ |