diff options
author | Iain Buclaw <ibuclaw@gdcproject.org> | 2021-04-10 12:24:40 +0200 |
---|---|---|
committer | Iain Buclaw <ibuclaw@gdcproject.org> | 2021-04-10 15:02:06 +0200 |
commit | 385ee099eeae53bff5dd5adf673ad4f4b8d22981 (patch) | |
tree | fb7c2ce20b667a8a14f63707a4d9de3ba3a3067e | |
parent | 2b778748319ffe8434f68d147c168423a1af388d (diff) | |
download | gcc-385ee099eeae53bff5dd5adf673ad4f4b8d22981.zip gcc-385ee099eeae53bff5dd5adf673ad4f4b8d22981.tar.gz gcc-385ee099eeae53bff5dd5adf673ad4f4b8d22981.tar.bz2 |
libphobos: Explicitly use -static-libphobos in druntime and phobos tests
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.
-rw-r--r-- | libphobos/testsuite/libphobos.druntime/druntime.exp | 3 | ||||
-rw-r--r-- | 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 df01fcc..daedfd7 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 770e576..937849e 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 "" } |