[debuginfo-tests] r219992 - Always compile debuginfo-tests for the host triple

Filipe Cabecinhas me at filcab.net
Thu Oct 16 16:43:35 PDT 2014


Author: filcab
Date: Thu Oct 16 18:43:34 2014
New Revision: 219992

URL: http://llvm.org/viewvc/llvm-project?rev=219992&view=rev
Log:
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).

Modified:
    debuginfo-tests/trunk/aggregate-indirect-arg.cpp
    debuginfo-tests/trunk/block_var.m
    debuginfo-tests/trunk/blocks.m
    debuginfo-tests/trunk/ctor.cpp
    debuginfo-tests/trunk/dbg-arg.c
    debuginfo-tests/trunk/foreach.m
    debuginfo-tests/trunk/forward-declare-class.cpp
    debuginfo-tests/trunk/nested-struct.cpp
    debuginfo-tests/trunk/sret.cpp
    debuginfo-tests/trunk/static-member-2.cpp
    debuginfo-tests/trunk/static-member.cpp

Modified: debuginfo-tests/trunk/aggregate-indirect-arg.cpp
URL: http://llvm.org/viewvc/llvm-project/debuginfo-tests/trunk/aggregate-indirect-arg.cpp?rev=219992&r1=219991&r2=219992&view=diff
==============================================================================
--- debuginfo-tests/trunk/aggregate-indirect-arg.cpp (original)
+++ debuginfo-tests/trunk/aggregate-indirect-arg.cpp Thu Oct 16 18:43:34 2014
@@ -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

Modified: debuginfo-tests/trunk/block_var.m
URL: http://llvm.org/viewvc/llvm-project/debuginfo-tests/trunk/block_var.m?rev=219992&r1=219991&r2=219992&view=diff
==============================================================================
--- debuginfo-tests/trunk/block_var.m (original)
+++ debuginfo-tests/trunk/block_var.m Thu Oct 16 18:43:34 2014
@@ -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

Modified: debuginfo-tests/trunk/blocks.m
URL: http://llvm.org/viewvc/llvm-project/debuginfo-tests/trunk/blocks.m?rev=219992&r1=219991&r2=219992&view=diff
==============================================================================
--- debuginfo-tests/trunk/blocks.m (original)
+++ debuginfo-tests/trunk/blocks.m Thu Oct 16 18:43:34 2014
@@ -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

Modified: debuginfo-tests/trunk/ctor.cpp
URL: http://llvm.org/viewvc/llvm-project/debuginfo-tests/trunk/ctor.cpp?rev=219992&r1=219991&r2=219992&view=diff
==============================================================================
--- debuginfo-tests/trunk/ctor.cpp (original)
+++ debuginfo-tests/trunk/ctor.cpp Thu Oct 16 18:43:34 2014
@@ -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 
 
 

Modified: debuginfo-tests/trunk/dbg-arg.c
URL: http://llvm.org/viewvc/llvm-project/debuginfo-tests/trunk/dbg-arg.c?rev=219992&r1=219991&r2=219992&view=diff
==============================================================================
--- debuginfo-tests/trunk/dbg-arg.c (original)
+++ debuginfo-tests/trunk/dbg-arg.c Thu Oct 16 18:43:34 2014
@@ -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

Modified: debuginfo-tests/trunk/foreach.m
URL: http://llvm.org/viewvc/llvm-project/debuginfo-tests/trunk/foreach.m?rev=219992&r1=219991&r2=219992&view=diff
==============================================================================
--- debuginfo-tests/trunk/foreach.m (original)
+++ debuginfo-tests/trunk/foreach.m Thu Oct 16 18:43:34 2014
@@ -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

Modified: debuginfo-tests/trunk/forward-declare-class.cpp
URL: http://llvm.org/viewvc/llvm-project/debuginfo-tests/trunk/forward-declare-class.cpp?rev=219992&r1=219991&r2=219992&view=diff
==============================================================================
--- debuginfo-tests/trunk/forward-declare-class.cpp (original)
+++ debuginfo-tests/trunk/forward-declare-class.cpp Thu Oct 16 18:43:34 2014
@@ -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
 

Modified: debuginfo-tests/trunk/nested-struct.cpp
URL: http://llvm.org/viewvc/llvm-project/debuginfo-tests/trunk/nested-struct.cpp?rev=219992&r1=219991&r2=219992&view=diff
==============================================================================
--- debuginfo-tests/trunk/nested-struct.cpp (original)
+++ debuginfo-tests/trunk/nested-struct.cpp Thu Oct 16 18:43:34 2014
@@ -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

Modified: debuginfo-tests/trunk/sret.cpp
URL: http://llvm.org/viewvc/llvm-project/debuginfo-tests/trunk/sret.cpp?rev=219992&r1=219991&r2=219992&view=diff
==============================================================================
--- debuginfo-tests/trunk/sret.cpp (original)
+++ debuginfo-tests/trunk/sret.cpp Thu Oct 16 18:43:34 2014
@@ -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

Modified: debuginfo-tests/trunk/static-member-2.cpp
URL: http://llvm.org/viewvc/llvm-project/debuginfo-tests/trunk/static-member-2.cpp?rev=219992&r1=219991&r2=219992&view=diff
==============================================================================
--- debuginfo-tests/trunk/static-member-2.cpp (original)
+++ debuginfo-tests/trunk/static-member-2.cpp Thu Oct 16 18:43:34 2014
@@ -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

Modified: debuginfo-tests/trunk/static-member.cpp
URL: http://llvm.org/viewvc/llvm-project/debuginfo-tests/trunk/static-member.cpp?rev=219992&r1=219991&r2=219992&view=diff
==============================================================================
--- debuginfo-tests/trunk/static-member.cpp (original)
+++ debuginfo-tests/trunk/static-member.cpp Thu Oct 16 18:43:34 2014
@@ -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





More information about the llvm-commits mailing list