Always compile debuginfo-tests for the host triple

Since these tests expect a working debugger, always compile them for the
host triple, assuming a working debugger is present.

This enables us to compile and run them, even when clang is, by default,
a cross-compiler (but can still target the host).

llvm-svn: 219992
This commit is contained in:
Filipe Cabecinhas 2014-10-16 23:43:34 +00:00
parent 659670d933
commit 63f2c2cb65
11 changed files with 20 additions and 20 deletions

View File

@ -1,5 +1,5 @@
// RUN: %clangxx -O0 -g %s -c -o %t.o
// RUN: %clangxx %t.o -o %t.out
// RUN: %clangxx --target=%itanium_abi_host_triple -O0 -g %s -c -o %t.o
// RUN: %clangxx --target=%itanium_abi_host_triple %t.o -o %t.out
// RUN: %test_debuginfo %s %t.out
// Radar 8945514
// DEBUGGER: break 22

View File

@ -1,5 +1,5 @@
// RUN: %clang -O0 -g %s -c -o %t.o
// RUN: %clang %t.o -o %t.out -framework Foundation
// RUN: %clang --target=%itanium_abi_host_triple -O0 -g %s -c -o %t.o
// RUN: %clang --target=%itanium_abi_host_triple %t.o -o %t.out -framework Foundation
// RUN: %test_debuginfo %s %t.out
// REQUIRES: system-darwin

View File

@ -1,5 +1,5 @@
// RUN: %clang -O0 -g %s -c -o %t.o
// RUN: %clang %t.o -o %t.out -framework Foundation
// RUN: %clang --target=%itanium_abi_host_triple -O0 -g %s -c -o %t.o
// RUN: %clang --target=%itanium_abi_host_triple %t.o -o %t.out -framework Foundation
// RUN: %test_debuginfo %s %t.out
// REQUIRES: system-darwin

View File

@ -1,5 +1,5 @@
// RUN: %clangxx -O0 -g %s -c -o %t.o
// RUN: %clangxx %t.o -o %t.out
// RUN: %clangxx --target=%itanium_abi_host_triple -O0 -g %s -c -o %t.o
// RUN: %clangxx --target=%itanium_abi_host_triple %t.o -o %t.out
// RUN: %test_debuginfo %s %t.out

View File

@ -1,6 +1,6 @@
// This test case checks debug info during register moves for an argument.
// RUN: %clang -arch x86_64 -mllvm -fast-isel=false %s -c -o %t.o
// RUN: %clang -arch x86_64 %t.o -o %t.out
// RUN: %clang --target=%itanium_abi_host_triple -arch x86_64 -mllvm -fast-isel=false %s -c -o %t.o
// RUN: %clang --target=%itanium_abi_host_triple -arch x86_64 %t.o -o %t.out
// RUN: %test_debuginfo %s %t.out
//
// Radar 8412415

View File

@ -1,5 +1,5 @@
// RUN: %clang -O0 -g %s -c -o %t.o
// RUN: %clang %t.o -o %t.out -framework Foundation
// RUN: %clang --target=%itanium_abi_host_triple -O0 -g %s -c -o %t.o
// RUN: %clang --target=%itanium_abi_host_triple %t.o -o %t.out -framework Foundation
// RUN: %test_debuginfo %s %t.out
//
// REQUIRES: system-darwin

View File

@ -1,4 +1,4 @@
// RUN: %clangxx -O0 -g %s -c -o %t.o
// RUN: %clangxx --target=%itanium_abi_host_triple -O0 -g %s -c -o %t.o
// RUN: %test_debuginfo %s %t.o
// Radar 9168773

View File

@ -1,4 +1,4 @@
// RUN: %clangxx -O0 -g %s -c -o %t.o
// RUN: %clangxx --target=%itanium_abi_host_triple -O0 -g %s -c -o %t.o
// RUN: %test_debuginfo %s %t.o
// Radar 9440721
// If debug info for my_number() is emitted outside function foo's scope

View File

@ -1,5 +1,5 @@
// RUN: %clangxx -O0 -g %s -c -o %t.o
// RUN: %clangxx %t.o -o %t.out
// RUN: %clangxx --target=%itanium_abi_host_triple -O0 -g %s -c -o %t.o
// RUN: %clangxx --target=%itanium_abi_host_triple %t.o -o %t.out
// RUN: %test_debuginfo %s %t.out
// Radar 8775834
// DEBUGGER: break 62

View File

@ -1,5 +1,5 @@
// RUN: %clangxx -O0 -g %s -o %t -c
// RUN: %clangxx %t -o %t.out
// RUN: %clangxx --target=%itanium_abi_host_triple -O0 -g %s -o %t -c
// RUN: %clangxx --target=%itanium_abi_host_triple %t -o %t.out
// RUN: %test_debuginfo %s %t.out
// FIXME: LLDB finds the wrong symbol for "C". rdar://problem/14933867

View File

@ -1,5 +1,5 @@
// RUN: %clangxx -O0 -g %s -o %t -c
// RUN: %clangxx %t -o %t.out
// RUN: %clangxx --target=%itanium_abi_host_triple -O0 -g %s -o %t -c
// RUN: %clangxx --target=%itanium_abi_host_triple %t -o %t.out
// RUN: %test_debuginfo %s %t.out
// DEBUGGER: delete breakpoints