aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJordan Rose <jordan_rose@apple.com>2012-09-27 01:40:12 +0000
committerJordan Rose <jordan_rose@apple.com>2012-09-27 01:40:12 +0000
commit69e80c58bcfdeeadc90f205b9c1b234f8eed14ed (patch)
tree2d66153dfd2b4a0cba0a1e6faef8a65e416c623f
parentc04bb926ef693c94560da254e87926e93bb9c92f (diff)
Use %clang_cc1 so that the test works even if the target isn't available.
Xcode-style clang builds only support Xcode's architectures, so mips isn't available and the driver tries to use gcc instead. cc1 will go ahead and do -fsyntax-only for any platform it knows about even if it can't actually compile. git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@164742 91177308-0d34-0410-b5e6-96231b3b80d8
-rw-r--r--test/Headers/unwind.c16
1 files changed, 8 insertions, 8 deletions
diff --git a/test/Headers/unwind.c b/test/Headers/unwind.c
index 3331ac4620..68100a8f85 100644
--- a/test/Headers/unwind.c
+++ b/test/Headers/unwind.c
@@ -1,19 +1,19 @@
-// RUN: %clang -target arm-unknown-linux-gnueabi \
+// RUN: %clang_cc1 -triple arm-unknown-linux-gnueabi \
// RUN: -isystem %S/Inputs/include -ffreestanding -fsyntax-only %s
-// RUN: %clang -target mips-unknown-linux \
+// RUN: %clang_cc1 -triple mips-unknown-linux \
// RUN: -isystem %S/Inputs/include -ffreestanding -fsyntax-only %s
-// RUN: %clang -target i686-unknown-linux \
+// RUN: %clang_cc1 -triple i686-unknown-linux \
// RUN: -isystem %S/Inputs/include -ffreestanding -fsyntax-only %s
-// RUN: %clang -target x86_64-unknown-linux \
+// RUN: %clang_cc1 -triple x86_64-unknown-linux \
// RUN: -isystem %S/Inputs/include -ffreestanding -fsyntax-only %s
-// RUN: %clang -target arm-unknown-linux-gnueabi \
+// RUN: %clang_cc1 -triple arm-unknown-linux-gnueabi \
// RUN: -isystem %S/Inputs/include -ffreestanding -fsyntax-only -x c++ %s
-// RUN: %clang -target mips-unknown-linux \
+// RUN: %clang_cc1 -triple mips-unknown-linux \
// RUN: -isystem %S/Inputs/include -ffreestanding -fsyntax-only -x c++ %s
-// RUN: %clang -target i686-unknown-linux \
+// RUN: %clang_cc1 -triple i686-unknown-linux \
// RUN: -isystem %S/Inputs/include -ffreestanding -fsyntax-only -x c++ %s
-// RUN: %clang -target x86_64-unknown-linux \
+// RUN: %clang_cc1 -triple x86_64-unknown-linux \
// RUN: -isystem %S/Inputs/include -ffreestanding -fsyntax-only -x c++ %s
#include "unwind.h"