[cfe-commits] r164742 - /cfe/trunk/test/Headers/unwind.c

Jordan Rose jordan_rose at apple.com
Wed Sep 26 18:40:12 PDT 2012


Author: jrose
Date: Wed Sep 26 20:40:12 2012
New Revision: 164742

URL: http://llvm.org/viewvc/llvm-project?rev=164742&view=rev
Log:
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.

Modified:
    cfe/trunk/test/Headers/unwind.c

Modified: cfe/trunk/test/Headers/unwind.c
URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/test/Headers/unwind.c?rev=164742&r1=164741&r2=164742&view=diff
==============================================================================
--- cfe/trunk/test/Headers/unwind.c (original)
+++ cfe/trunk/test/Headers/unwind.c Wed Sep 26 20:40:12 2012
@@ -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"





More information about the cfe-commits mailing list