]> granicus.if.org Git - clang/commitdiff
Fix test to work when clang is built without powerpc64 support.
authorBob Wilson <bob.wilson@apple.com>
Tue, 12 Jun 2012 20:22:45 +0000 (20:22 +0000)
committerBob Wilson <bob.wilson@apple.com>
Tue, 12 Jun 2012 20:22:45 +0000 (20:22 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@158370 91177308-0d34-0410-b5e6-96231b3b80d8

test/Driver/clang-translation.c

index cc368bb0cbaa3623fce3951add15f2c75d025667..76196da9fc3d6eaf34895e5eec458349a0368c7b 100644 (file)
 // ARMV5E: "-cc1"
 // ARMV5E: "-target-cpu" "arm1022e"
 
-// RUN: %clang -target powerpc64-unknown-linux-gnu -### -S %s 2> %t.log \
+// RUN: %clang -ccc-clang-archs powerpc64 \
+// RUN:   -target powerpc64-unknown-linux-gnu -### -S %s 2> %t.log \
 // RUN:   -mcpu=G5
 // RUN: FileCheck -check-prefix=PPCG5 %s < %t.log
 // PPCG5: clang
 // PPCG5: "-cc1"
 // PPCG5: "-target-cpu" "g5"
 
-// RUN: %clang -target powerpc64-unknown-linux-gnu -### -S %s 2> %t.log \
+// RUN: %clang -ccc-clang-archs powerpc64 \
+// RUN:   -target powerpc64-unknown-linux-gnu -### -S %s 2> %t.log      \
 // RUN:   -mcpu=power7
 // RUN: FileCheck -check-prefix=PPCPWR7 %s < %t.log
 // PPCPWR7: clang
 // PPCPWR7: "-cc1"
 // PPCPWR7: "-target-cpu" "pwr7"
 
-// RUN: %clang -target powerpc64-unknown-linux-gnu -### -S %s 2> %t.log
+// RUN: %clang -ccc-clang-archs powerpc64 \
+// RUN:   -target powerpc64-unknown-linux-gnu -### -S %s 2> %t.log
 // RUN: FileCheck -check-prefix=PPC64NS %s < %t.log
 // PPC64NS: clang
 // PPC64NS: "-cc1"