https://gcc.gnu.org/bugzilla/show_bug.cgi?id=87788

--- Comment #5 from Iain Buclaw <ibuclaw at gdcproject dot org> ---
(In reply to Iain Sandoe from comment #4)
> (In reply to Iain Buclaw from comment #3)
> > Thanks, I'm just going to try building it now.
> 
> didn't get much further - kinda looks like something isn't working right
> with Version() such that the OSX/Darwin versions of the section refs are not
> getting used - hopefully, it's just config stuff and will be obvious to you.

It may be that there's no predefined version conditions for OSX, right.

In the meantime, I guess this will need to be done just to get builders passing
again.  So there's no time pressure on myself.


--- a/configure.ac
+++ b/configure.ac
@@ -674,6 +674,30 @@ if test "${ENABLE_LIBSTDCXX}" = "default" ; then
   esac
 fi

+# Disable the D frontend on systems where it is known to not work.
+case "${target}" in
+*-*-darwin* | *-*-cygwin* | *-*-mingw*)
+    unsupported_languages="$unsupported_languages d"
+    ;;
+esac
+
+# Disable libphobos on unsupported systems.
+# For testing, you can override this with --enable-libphobos.
+if test -d ${srcdir}/libphobos; then
+    if test x$enable_libphobos = x; then
+       AC_MSG_CHECKING([for libphobos support])
+       if (srcdir=${srcdir}/libphobos; \
+               . ${srcdir}/configure.tgt; \
+               test -n "$UNSUPPORTED")
+       then
+           AC_MSG_RESULT([no])
+           noconfigdirs="$noconfigdirs target-libphobos"
+       else
+           AC_MSG_RESULT([yes])
+       fi
+    fi
+fi
+
 # Disable Fortran for some systems.
 case "${target}" in
   mmix-*-*)

Reply via email to