]> git.ipfire.org Git - thirdparty/gcc.git/commitdiff
libphobos: Explicitly use -static-libphobos in druntime and phobos tests
authorIain Buclaw <ibuclaw@gdcproject.org>
Sat, 10 Apr 2021 10:24:40 +0000 (12:24 +0200)
committerIain Buclaw <ibuclaw@gdcproject.org>
Sat, 10 Apr 2021 13:02:06 +0000 (15:02 +0200)
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.

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
libphobos/testsuite/libphobos.phobos/phobos.exp

index df01fcc8a2308a65dded0301733d7954b3d7c0d7..daedfd71ebb1bd84cb97f3c080e6cd5a10f2f651 100644 (file)
@@ -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 ""
 }
 
index 770e5769e3cc5301f1e2f699860b3ada9faec83c..937849eebd7a7a462b44d619808dbe24f523a8ac 100644 (file)
@@ -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 ""
 }