On Sun, 25 Nov 2018 at 16:08, Rainer Orth <r...@cebitec.uni-bielefeld.de> wrote: > > On targets with gdc enabled (most with --enable-languages=all or with an > explicit --enable-languges=d), but libphobos not built (many), all gdc.* > execution tests FAIL because already libgphobos.spec is missing. > > This is easy to avoid, however, as the following patch does. It adds D > support to check_compile and a new effective-target keyword d_runtime. > Except for two cases, the execution of D tests can be inhibited by > demoting link and run tests to compile in gdc-dg-test, so the patch is > pretty unintrusive. > > Two instances needed special handling: > > * gdc.dg/runnable.d won't even compile because it requires gcc/config.d, > which is only created at libphobos configure time. > > * The gdc.dg/lto tests don't ultimately use dg-test/gdc-dg-test, so need > to be disabled explicitly if !d_runtime. > > Bootstrapped without regressions on i386-pc-solaris2.11, > sparc-sun-solaris2.11 (which don't currently build libphobos by default) > and x86_64-pc-linux-gnu (which does). > > Since this is a pure testsuite patch, I don't need approval, but it > would be good if Iain could have a look nonetheless. >
Seems reasonable. Thanks. -- Iain