From: Jordan Rose Date: Thu, 27 Sep 2012 01:40:12 +0000 (+0000) Subject: Use %clang_cc1 so that the test works even if the target isn't available. X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=69e80c58bcfdeeadc90f205b9c1b234f8eed14ed;p=clang 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 --- 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"