public inbox for gcc-patches@gcc.gnu.org
 help / color / mirror / Atom feed
* [committed] libphobos: Explicitly use -static-libphobos in druntime and phobos tests
@ 2021-04-10 13:09 Iain Buclaw
  0 siblings, 0 replies; only message in thread
From: Iain Buclaw @ 2021-04-10 13:09 UTC (permalink / raw)
  To: gcc-patches

Hi,

This patch updates the default flags to explicitly use
`-static-libphobos' in the druntime.exp and phobos.exp test scripts.

Linking to libphobos statically is the default in the driver, however
this may change in future.  Be explicit that the static libphobos is
what's being tested.

Bootstrapped and regression tested on x86_64-linux-gnu/-m32/-mx32, and
committed to mainline.

Regards
Iain

---
libphobos/ChangeLog:

	* testsuite/libphobos.druntime/druntime.exp: Compile all tests with
	-static-libphobos.
	* testsuite/libphobos.phobos/phobos.exp: Likewise.
---
 libphobos/testsuite/libphobos.druntime/druntime.exp | 3 ++-
 libphobos/testsuite/libphobos.phobos/phobos.exp     | 3 ++-
 2 files changed, 4 insertions(+), 2 deletions(-)

diff --git a/libphobos/testsuite/libphobos.druntime/druntime.exp b/libphobos/testsuite/libphobos.druntime/druntime.exp
index df01fcc8a23..daedfd71ebb 100644
--- a/libphobos/testsuite/libphobos.druntime/druntime.exp
+++ b/libphobos/testsuite/libphobos.druntime/druntime.exp
@@ -34,7 +34,8 @@ dg-init
 # Main loop.
 foreach test $tests {
     set libphobos_test_name "$subdir/[dg-trim-dirname $srcdir/../libdruntime $test]"
-    dg-runtest $test "" "-fmain -fbuilding-libphobos-tests $version_flags"
+    dg-runtest $test "-static-libphobos" \
+	"-fmain -fbuilding-libphobos-tests $version_flags"
     set libphobos_test_name ""
 }
 
diff --git a/libphobos/testsuite/libphobos.phobos/phobos.exp b/libphobos/testsuite/libphobos.phobos/phobos.exp
index 770e5769e3c..937849eebd7 100644
--- a/libphobos/testsuite/libphobos.phobos/phobos.exp
+++ b/libphobos/testsuite/libphobos.phobos/phobos.exp
@@ -45,7 +45,8 @@ dg-init
 # Main loop.
 foreach test $tests {
     set libphobos_test_name "$subdir/[dg-trim-dirname $srcdir/../src $test]"
-    dg-runtest $test "" "-fmain -fbuilding-libphobos-tests $version_flags"
+    dg-runtest $test "-static-libphobos" \
+	"-fmain -fbuilding-libphobos-tests $version_flags"
     set libphobos_test_name ""
 }
 
-- 
2.27.0


^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2021-04-10 13:09 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2021-04-10 13:09 [committed] libphobos: Explicitly use -static-libphobos in druntime and phobos tests Iain Buclaw

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).