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 | 6bd37ee37aa8ffb7007e38735ce14f27e5784b40 (patch) | |
tree | 02dcd5631c3ac0ded82b424cb7f0aeaf733722c2 /test/Preprocessor/macho-embedded-predefines.c | |
parent | 6749b867ad32635016177ea3a199b528d2fe88c8 (diff) |
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.
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@199367 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'test/Preprocessor/macho-embedded-predefines.c')
-rw-r--r-- | test/Preprocessor/macho-embedded-predefines.c | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/test/Preprocessor/macho-embedded-predefines.c b/test/Preprocessor/macho-embedded-predefines.c new file mode 100644 index 0000000000..8356bc9924 --- /dev/null +++ b/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__ |