Skip to content

Commit 63f2c2c

Browse files
committed
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
1 parent 659670d commit 63f2c2c

File tree

11 files changed

+20
-20
lines changed

11 files changed

+20
-20
lines changed

debuginfo-tests/aggregate-indirect-arg.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
1-
// RUN: %clangxx -O0 -g %s -c -o %t.o
2-
// RUN: %clangxx %t.o -o %t.out
1+
// RUN: %clangxx --target=%itanium_abi_host_triple -O0 -g %s -c -o %t.o
2+
// RUN: %clangxx --target=%itanium_abi_host_triple %t.o -o %t.out
33
// RUN: %test_debuginfo %s %t.out
44
// Radar 8945514
55
// DEBUGGER: break 22

debuginfo-tests/block_var.m

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
1-
// RUN: %clang -O0 -g %s -c -o %t.o
2-
// RUN: %clang %t.o -o %t.out -framework Foundation
1+
// RUN: %clang --target=%itanium_abi_host_triple -O0 -g %s -c -o %t.o
2+
// RUN: %clang --target=%itanium_abi_host_triple %t.o -o %t.out -framework Foundation
33
// RUN: %test_debuginfo %s %t.out
44

55
// REQUIRES: system-darwin

debuginfo-tests/blocks.m

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
1-
// RUN: %clang -O0 -g %s -c -o %t.o
2-
// RUN: %clang %t.o -o %t.out -framework Foundation
1+
// RUN: %clang --target=%itanium_abi_host_triple -O0 -g %s -c -o %t.o
2+
// RUN: %clang --target=%itanium_abi_host_triple %t.o -o %t.out -framework Foundation
33
// RUN: %test_debuginfo %s %t.out
44

55
// REQUIRES: system-darwin

debuginfo-tests/ctor.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
1-
// RUN: %clangxx -O0 -g %s -c -o %t.o
2-
// RUN: %clangxx %t.o -o %t.out
1+
// RUN: %clangxx --target=%itanium_abi_host_triple -O0 -g %s -c -o %t.o
2+
// RUN: %clangxx --target=%itanium_abi_host_triple %t.o -o %t.out
33
// RUN: %test_debuginfo %s %t.out
44

55

debuginfo-tests/dbg-arg.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
// This test case checks debug info during register moves for an argument.
2-
// RUN: %clang -arch x86_64 -mllvm -fast-isel=false %s -c -o %t.o
3-
// RUN: %clang -arch x86_64 %t.o -o %t.out
2+
// RUN: %clang --target=%itanium_abi_host_triple -arch x86_64 -mllvm -fast-isel=false %s -c -o %t.o
3+
// RUN: %clang --target=%itanium_abi_host_triple -arch x86_64 %t.o -o %t.out
44
// RUN: %test_debuginfo %s %t.out
55
//
66
// Radar 8412415

debuginfo-tests/foreach.m

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
1-
// RUN: %clang -O0 -g %s -c -o %t.o
2-
// RUN: %clang %t.o -o %t.out -framework Foundation
1+
// RUN: %clang --target=%itanium_abi_host_triple -O0 -g %s -c -o %t.o
2+
// RUN: %clang --target=%itanium_abi_host_triple %t.o -o %t.out -framework Foundation
33
// RUN: %test_debuginfo %s %t.out
44
//
55
// REQUIRES: system-darwin

debuginfo-tests/forward-declare-class.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
// RUN: %clangxx -O0 -g %s -c -o %t.o
1+
// RUN: %clangxx --target=%itanium_abi_host_triple -O0 -g %s -c -o %t.o
22
// RUN: %test_debuginfo %s %t.o
33
// Radar 9168773
44

debuginfo-tests/nested-struct.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
// RUN: %clangxx -O0 -g %s -c -o %t.o
1+
// RUN: %clangxx --target=%itanium_abi_host_triple -O0 -g %s -c -o %t.o
22
// RUN: %test_debuginfo %s %t.o
33
// Radar 9440721
44
// If debug info for my_number() is emitted outside function foo's scope

debuginfo-tests/sret.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
1-
// RUN: %clangxx -O0 -g %s -c -o %t.o
2-
// RUN: %clangxx %t.o -o %t.out
1+
// RUN: %clangxx --target=%itanium_abi_host_triple -O0 -g %s -c -o %t.o
2+
// RUN: %clangxx --target=%itanium_abi_host_triple %t.o -o %t.out
33
// RUN: %test_debuginfo %s %t.out
44
// Radar 8775834
55
// DEBUGGER: break 62

debuginfo-tests/static-member-2.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
1-
// RUN: %clangxx -O0 -g %s -o %t -c
2-
// RUN: %clangxx %t -o %t.out
1+
// RUN: %clangxx --target=%itanium_abi_host_triple -O0 -g %s -o %t -c
2+
// RUN: %clangxx --target=%itanium_abi_host_triple %t -o %t.out
33
// RUN: %test_debuginfo %s %t.out
44

55
// FIXME: LLDB finds the wrong symbol for "C". rdar://problem/14933867

0 commit comments

Comments
 (0)