summaryrefslogtreecommitdiff
path: root/debuginfo-tests
diff options
context:
space:
mode:
authorFilipe Cabecinhas <me@filcab.net>2014-10-16 23:43:34 +0000
committerFilipe Cabecinhas <me@filcab.net>2014-10-16 23:43:34 +0000
commit63f2c2cb6599aed7db956272a6a0f541d864e69b (patch)
treea2effd2a1fa88fedb64e4ea3132e14a59f08faa4 /debuginfo-tests
parent659670d9338cc298a3589315877983ba32bd9fae (diff)
downloadllvm-63f2c2cb6599aed7db956272a6a0f541d864e69b.tar.gz
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
Diffstat (limited to 'debuginfo-tests')
-rw-r--r--debuginfo-tests/aggregate-indirect-arg.cpp4
-rw-r--r--debuginfo-tests/block_var.m4
-rw-r--r--debuginfo-tests/blocks.m4
-rw-r--r--debuginfo-tests/ctor.cpp4
-rw-r--r--debuginfo-tests/dbg-arg.c4
-rw-r--r--debuginfo-tests/foreach.m4
-rw-r--r--debuginfo-tests/forward-declare-class.cpp2
-rw-r--r--debuginfo-tests/nested-struct.cpp2
-rw-r--r--debuginfo-tests/sret.cpp4
-rw-r--r--debuginfo-tests/static-member-2.cpp4
-rw-r--r--debuginfo-tests/static-member.cpp4
11 files changed, 20 insertions, 20 deletions
diff --git a/debuginfo-tests/aggregate-indirect-arg.cpp b/debuginfo-tests/aggregate-indirect-arg.cpp
index bbbb01e9ca24..aa5ef8b14216 100644
--- a/debuginfo-tests/aggregate-indirect-arg.cpp
+++ b/debuginfo-tests/aggregate-indirect-arg.cpp
@@ -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
diff --git a/debuginfo-tests/block_var.m b/debuginfo-tests/block_var.m
index 83a30fd8c464..548cdd08438f 100644
--- a/debuginfo-tests/block_var.m
+++ b/debuginfo-tests/block_var.m
@@ -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
diff --git a/debuginfo-tests/blocks.m b/debuginfo-tests/blocks.m
index 0ac0e073efb9..302005d6ca97 100644
--- a/debuginfo-tests/blocks.m
+++ b/debuginfo-tests/blocks.m
@@ -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
diff --git a/debuginfo-tests/ctor.cpp b/debuginfo-tests/ctor.cpp
index 331d4e5756cc..8a858e40dac0 100644
--- a/debuginfo-tests/ctor.cpp
+++ b/debuginfo-tests/ctor.cpp
@@ -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
diff --git a/debuginfo-tests/dbg-arg.c b/debuginfo-tests/dbg-arg.c
index 02fcbf34b1b8..e7acaa8e64ad 100644
--- a/debuginfo-tests/dbg-arg.c
+++ b/debuginfo-tests/dbg-arg.c
@@ -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
diff --git a/debuginfo-tests/foreach.m b/debuginfo-tests/foreach.m
index 50e6af9bfce1..132dacc5da76 100644
--- a/debuginfo-tests/foreach.m
+++ b/debuginfo-tests/foreach.m
@@ -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
diff --git a/debuginfo-tests/forward-declare-class.cpp b/debuginfo-tests/forward-declare-class.cpp
index 5c0f1df86e56..eb9d50745de8 100644
--- a/debuginfo-tests/forward-declare-class.cpp
+++ b/debuginfo-tests/forward-declare-class.cpp
@@ -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
diff --git a/debuginfo-tests/nested-struct.cpp b/debuginfo-tests/nested-struct.cpp
index 22f2344e79b9..ebb7ee4d71f0 100644
--- a/debuginfo-tests/nested-struct.cpp
+++ b/debuginfo-tests/nested-struct.cpp
@@ -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
diff --git a/debuginfo-tests/sret.cpp b/debuginfo-tests/sret.cpp
index 4c46c3d09626..28d6a068ac68 100644
--- a/debuginfo-tests/sret.cpp
+++ b/debuginfo-tests/sret.cpp
@@ -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
diff --git a/debuginfo-tests/static-member-2.cpp b/debuginfo-tests/static-member-2.cpp
index 8e88a8c292ba..dda9a225849d 100644
--- a/debuginfo-tests/static-member-2.cpp
+++ b/debuginfo-tests/static-member-2.cpp
@@ -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
diff --git a/debuginfo-tests/static-member.cpp b/debuginfo-tests/static-member.cpp
index a8e3ecb95249..fdca889bdf72 100644
--- a/debuginfo-tests/static-member.cpp
+++ b/debuginfo-tests/static-member.cpp
@@ -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