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-Tag: upstream/12.2.0~25206 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=4d024c32696b98f3ca15505fbaa39600d7c118bb;p=platform%2Fupstream%2Fgcc.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 6ad3ad3..10ea667 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 1bb0a13..abd93a9 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 e3674a3..9db4fd1 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 5623170..425ce25 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 efece15..142b03d 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 */