diff mbox series

[committed] libphobos: Re-add -fno-moduleinfo flag to dg-runtest [PR99812]

Message ID 20210410130849.181105-1-ibuclaw@gdcproject.org
State New
Headers show
Series [committed] libphobos: Re-add -fno-moduleinfo flag to dg-runtest [PR99812] | expand

Commit Message

Iain Buclaw April 10, 2021, 1:08 p.m. UTC
Hi,

This patch partially reverts a previous change that removed these flags,
just to satisfy running tests on Solaris.

The fix isn't really correct, what should really be done is that the
test modules are compiled in a way that doesn't conflict with the
release library, which would also allow most tests to pass on Darwin.

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

Regards
Iain

---
libphobos/ChangeLog:

	PR d/99812
	* testsuite/libphobos.druntime_shared/druntime_shared.exp: Re-add
	-fno-moduleinfo flag to dg-runtest.
	* testsuite/libphobos.phobos_shared/phobos_shared.exp: Likewise.
---
 .../testsuite/libphobos.druntime_shared/druntime_shared.exp     | 2 +-
 libphobos/testsuite/libphobos.phobos_shared/phobos_shared.exp   | 2 +-
 2 files changed, 2 insertions(+), 2 deletions(-)
diff mbox series

Patch

diff --git a/libphobos/testsuite/libphobos.druntime_shared/druntime_shared.exp b/libphobos/testsuite/libphobos.druntime_shared/druntime_shared.exp
index 2b2561346db..51f9c2cf1d6 100644
--- a/libphobos/testsuite/libphobos.druntime_shared/druntime_shared.exp
+++ b/libphobos/testsuite/libphobos.druntime_shared/druntime_shared.exp
@@ -35,7 +35,7 @@  dg-init
 foreach test $tests {
     set libphobos_test_name "$subdir/[dg-trim-dirname $srcdir/../libdruntime $test]"
     dg-runtest $test "-shared-libphobos" \
-	"-fmain -fbuilding-libphobos-tests $version_flags"
+	"-fmain -fbuilding-libphobos-tests -fno-moduleinfo $version_flags"
     set libphobos_test_name ""
 }
 
diff --git a/libphobos/testsuite/libphobos.phobos_shared/phobos_shared.exp b/libphobos/testsuite/libphobos.phobos_shared/phobos_shared.exp
index 3a847e71e98..8498522d4d4 100644
--- a/libphobos/testsuite/libphobos.phobos_shared/phobos_shared.exp
+++ b/libphobos/testsuite/libphobos.phobos_shared/phobos_shared.exp
@@ -46,7 +46,7 @@  dg-init
 foreach test $tests {
     set libphobos_test_name "$subdir/[dg-trim-dirname $srcdir/../src $test]"
     dg-runtest $test "-shared-libphobos" \
-	"-fmain -fbuilding-libphobos-tests $version_flags"
+	"-fmain -fbuilding-libphobos-tests -fno-moduleinfo $version_flags"
     set libphobos_test_name ""
 }