Re: Re: Window Build Patch - Check for grep and sed
| From: | Steph Fox | Date: | Wed, 28 Feb 2007 12:32:07 +0000 |
| Subject: | Re: Re: Window Build Patch - Check for grep and sed | ||
| References: | 1 2 3 4 | Groups: | php.gtk.dev |
| Request: | Send a blank email to php-gtk-dev+get-3743@lists.php.net to get a copy of this message | ||
This one can go in straight off, it doesn't touch anything existing.
----- Original Message ----- From: "Elizabeth Smith" <emsmith@elizabethmariesmith.com>
To: <php-gtk-dev@lists.php.net>
Sent: Wednesday, February 28, 2007 2:09 AM
Subject: [PHP-GTK-DEV] Re: Window Build Patch - Check for grep and sed
Round four - Allow --enable-debug-pack so pdb files can be generated for release builds, so any backtraces via windbg are actually meaningful--------------------------------------------------------------------------------
Index: config.w32.in =================================================================== RCS file: /repository/php-gtk/win32/config.w32.in,v retrieving revision 1.12 diff -u -r1.12 config.w32.in --- config.w32.in 17 Jun 2006 14:47:08 -0000 1.12 +++ config.w32.in 28 Feb 2007 02:07:21 -0000 @@ -56,6 +56,10 @@ } ARG_ENABLE('debug', 'Compile with debugging symbols', "no"); +ARG_ENABLE('debug-pack', 'Release binaries with external debug symbols (--enable-debug must not be specified)', 'no'); +if (PHP_GTK_DEBUG == "yes" && PHP_GTK_DEBUG_PACK == "yes") { + ERROR("Use of both --enable-debug and --enable-debug-pack not allowed."); +} // Set some debug-specific options if (PHP_GTK_DEBUG == "yes") { @@ -86,6 +90,11 @@ } else { DEFINE("CFLAGS", "/nologo /MD /W3 /GX /O2 /I . /I ..\\ /I ..\\.. /I main /I ..\\main /I ext /I ..\\ext /I ..\\php5\\main /I ..\\php5\\Zend /I ..\\php5\\TSRM /D ZEND_WIN32 /D ZTS=1 /D ZEND_DEBUG=0 /D PHP_WIN32 /D WIN32 /D NDEBUG /D _WINDOWS /D _MBCS /D _USRDLL"); + // Generate external debug files when --enable-debug-pack is specified + if (PHP_GTK_DEBUG_PACK == "yes") { + ADD_FLAG("CFLAGS", "/Zi"); + ADD_FLAG("LDFLAGS", "/incremental:no /debug /opt:ref,icf"); + } } if (VCVERS < 14) {--------------------------------------------------------------------------------
-- PHP-GTK Development Mailing List (http://gtk.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php