From: Johannes Pfau Date: Sun, 14 Apr 2019 09:52:22 +0000 (+0000) Subject: PR d/87799 Fix D build on windows hosts X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=4d024c32696b98f3ca15505fbaa39600d7c118bb;p=gcc.git PR d/87799 Fix D build on windows hosts PR d/87799 * d-system.h (_mkdir): Forward _mkdir on MinGW to mkdir in system.h. * configure.ac: Remove d from unsupported languages on mingw and cygwin. * configure: Regenerate. From-SVN: r270349 --- diff --git a/ChangeLog b/ChangeLog index 6ad3ad3f18e..10ea6676726 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,8 @@ +2019-04-14 Johannes Pfau + + * configure.ac: Remove d from unsupported languages on mingw and cygwin. + * configure: Regenerate. + 2019-04-14 Rainer Orth * configure.ac (enable_libphobos): Check LIBPHOBOS_SUPPORTED. diff --git a/configure b/configure index 1bb0a131985..abd93a990a9 100755 --- a/configure +++ b/configure @@ -3396,7 +3396,7 @@ case ,${enable_languages}, in ;; *) case "${target}" in - *-*-darwin* | *-*-cygwin* | *-*-mingw*) + *-*-darwin*) unsupported_languages="$unsupported_languages d" ;; esac diff --git a/configure.ac b/configure.ac index e3674a33818..9db4fd14aa2 100644 --- a/configure.ac +++ b/configure.ac @@ -681,7 +681,7 @@ case ,${enable_languages}, in ;; *) case "${target}" in - *-*-darwin* | *-*-cygwin* | *-*-mingw*) + *-*-darwin*) unsupported_languages="$unsupported_languages d" ;; esac diff --git a/gcc/d/ChangeLog b/gcc/d/ChangeLog index 5623170ae5e..425ce25ec31 100644 --- a/gcc/d/ChangeLog +++ b/gcc/d/ChangeLog @@ -1,3 +1,7 @@ +2019-04-14 Johannes Pfau + PR d/87799 + * d-system.h (_mkdir): Forward _mkdir on MinGW to mkdir in system.h. + 2019-04-12 Iain Buclaw * d-tree.h (DECL_IN_UNITTEST_CONDITION_P): Define. diff --git a/gcc/d/d-system.h b/gcc/d/d-system.h index efece15f3bc..142b03dc80f 100644 --- a/gcc/d/d-system.h +++ b/gcc/d/d-system.h @@ -55,4 +55,10 @@ #undef tolower #define tolower(c) TOLOWER(c) +/* Forward _mkdir on MinGW to mkdir in system.h. */ +#ifdef _WIN32 +#undef _mkdir +#define _mkdir(p) mkdir(p, 0) +#endif + #endif /* GCC_D_SYSTEM_H */