From 69e80c58bcfdeeadc90f205b9c1b234f8eed14ed Mon Sep 17 00:00:00 2001 From: Jordan Rose Date: Thu, 27 Sep 2012 01:40:12 +0000 Subject: [PATCH] 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 --- test/Headers/unwind.c | 16 ++++++++-------- 1 file 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" -- 2.40.0