diff options
author | Iain Buclaw <ibuclaw@gdcproject.org> | 2020-03-25 09:38:58 +0100 |
---|---|---|
committer | Iain Buclaw <ibuclaw@gdcproject.org> | 2020-04-18 18:25:49 +0200 |
commit | 261bd78d57d40a03f340cfe4fc78ff9717c9602d (patch) | |
tree | 56918700689bbafd55af340a13d15c94ac5831fe /libphobos/testsuite | |
parent | baf3b9b2e5259558ef86bd62398e2ccecd7a4a4c (diff) |
libphobos: Add --with-libphobos-druntime-only option.
The intended purpose of the option is both for targets that don't
support phobos yet, and for gdc itself to support bootstrapping itself
as a self-hosted D compiler.
The libphobos testsuite has been updated to only add libphobos to the
search paths if it's being built. A new D2 testsuite directive
RUNNABLE_PHOBOS_TEST has also been patched in to disable some runnable
tests that have phobos dependencies, of which is a temporary measure
until upstream DMD fixes or removes these tests entirely.
gcc/testsuite/ChangeLog:
* lib/gdc-utils.exp (gdc-convert-test): Add dg-skip-if for tests that
depending on the phobos standard library.
libphobos/ChangeLog:
* configure: Regenerate.
* configure.ac: Add --with-libphobos-druntime-only option and the
conditional ENABLE_LIBDRUNTIME_ONLY.
* configure.tgt: Define LIBDRUNTIME_ONLY.
* src/Makefile.am: Add phobos sources if not ENABLE_LIBDRUNTIME_ONLY.
* src/Makefile.in: Regenerate.
* testsuite/testsuite_flags.in: Add phobos path if compiling phobos.
Diffstat (limited to 'libphobos/testsuite')
-rwxr-xr-x | libphobos/testsuite/testsuite_flags.in | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/libphobos/testsuite/testsuite_flags.in b/libphobos/testsuite/testsuite_flags.in index c5dcac2054f..43e42810434 100755 --- a/libphobos/testsuite/testsuite_flags.in +++ b/libphobos/testsuite/testsuite_flags.in @@ -35,8 +35,11 @@ case ${query} in GDCPATHS_default="-nostdinc" GDCPATHS_config="-B${BUILD_DIR}/src -I${BUILD_DIR}/libdruntime - -I${SRC_DIR}/libdruntime - -I${SRC_DIR}/src" + -I${SRC_DIR}/libdruntime" + # Include phobos in search path if compiling in library. + if [ "x@ENABLE_LIBDRUNTIME_ONLY_FALSE@" = "x" ]; then + GDCPATHS_config="${GDCPATHS_config} -I${SRC_DIR}/src" + fi echo ${GDCPATHS_default} ${GDCPATHS_config} ;; --gdcldflags) |