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.
This commit is contained in:
parent
2b77874831
commit
385ee099ee
2 changed files with 4 additions and 2 deletions
|
@ -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 ""
|
||||
}
|
||||
|
||||
|
|
|
@ -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 ""
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue