]> granicus.if.org Git - clang/commitdiff
Use %clang_cc1 so that the test works even if the target isn't available.
authorJordan Rose <jordan_rose@apple.com>
Thu, 27 Sep 2012 01:40:12 +0000 (01:40 +0000)
committerJordan Rose <jordan_rose@apple.com>
Thu, 27 Sep 2012 01:40:12 +0000 (01:40 +0000)
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

test/Headers/unwind.c

index 3331ac46207c4eff307a2f19a9d5b278d49cdc32..68100a8f85513ff2604a7e3810dfe85072b68c0c 100644 (file)
@@ -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"