PR d/87799 Fix D build on windows hosts
authorJohannes Pfau <johannespfau@gmail.com>
Sun, 14 Apr 2019 09:52:22 +0000 (09:52 +0000)
committerJohannes Pfau <jpfau@gcc.gnu.org>
Sun, 14 Apr 2019 09:52:22 +0000 (09:52 +0000)
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

ChangeLog
configure
configure.ac
gcc/d/ChangeLog
gcc/d/d-system.h

index 6ad3ad3f18eee1ac4dcbd8970f55c2b579eae10c..10ea6676726e5977b6102ad1787304b85cbac4d7 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,8 @@
+2019-04-14  Johannes Pfau  <johannespfau@gmail.com>
+
+       * configure.ac: Remove d from unsupported languages on mingw and cygwin.
+       * configure: Regenerate.
+
 2019-04-14  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
 
        * configure.ac (enable_libphobos): Check LIBPHOBOS_SUPPORTED.
index 1bb0a13198508e55ffd67b4979a934d9666bd4d1..abd93a990a947f9e7f07d530d14f0ab8720ffa4c 100755 (executable)
--- 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
index e3674a338183a794045485eb493e1fb86c75dae0..9db4fd14aa238f346dbe3ec1e7ef134741498048 100644 (file)
@@ -681,7 +681,7 @@ case ,${enable_languages}, in
     ;;
   *)
     case "${target}" in
-      *-*-darwin* | *-*-cygwin* | *-*-mingw*)
+      *-*-darwin*)
        unsupported_languages="$unsupported_languages d"
        ;;
     esac
index 5623170ae5edc916aa3b0c5c73542240445a7ae9..425ce25ec3153fea727479b9f34ac7a1aa513925 100644 (file)
@@ -1,3 +1,7 @@
+2019-04-14  Johannes Pfau  <johannespfau@gmail.com>
+       PR d/87799
+       * d-system.h (_mkdir): Forward _mkdir on MinGW to mkdir in system.h.
+
 2019-04-12  Iain Buclaw  <ibuclaw@gdcproject.org>
 
        * d-tree.h (DECL_IN_UNITTEST_CONDITION_P): Define.
index efece15f3bc45a6addb9c8f89b7401485596e6a8..142b03dc80f1a942b83ca787e2513ecc0529f76b 100644 (file)
 #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  */