]> git.saurik.com Git - wxWidgets.git/commitdiff
disable PCH under cygwin, it doesn't work even with the very latest cygwin gcc
authorVadim Zeitlin <vadim@wxwidgets.org>
Mon, 31 Oct 2005 19:59:52 +0000 (19:59 +0000)
committerVadim Zeitlin <vadim@wxwidgets.org>
Mon, 31 Oct 2005 19:59:52 +0000 (19:59 +0000)
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@36045 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775

build/aclocal/bakefile.m4

index 0516430743cf10df9e4482a36d85766835264d36..7808e65f070c3751af17d34b5b7c2783dee7fc3c 100644 (file)
@@ -650,6 +650,15 @@ AC_DEFUN([AC_BAKEFILE_PRECOMP_HEADERS],
 
     GCC_PCH=0
 
+    case ${BAKEFILE_HOST} in 
+        *-*-cygwin* )
+            dnl PCH support is broken in cygwin gcc because of unportable
+            dnl assumptions about mmap() in gcc code which make PCH generation
+            dnl fail erratically; disable PCH completely until this is fixed
+            bk_use_pch="no"
+            ;;
+    esac
+
     if test "x$bk_use_pch" = "x" -o "x$bk_use_pch" = "xyes" ; then
         if test "x$GCC" = "xyes"; then
             dnl test if we have gcc-3.4: