mirror of
https://github.com/php/php-src.git
synced 2024-11-27 03:44:07 +08:00
6e825dfe43
This enables outputting additional debugging messages when running phpdbg for developing and troubleshooting phpdbg itself. Option was already added in Autotools and this adds it also to Windows build system. Because additional info is printed when running tests, the --enable-phpdbg-debug option is excluded when building with --enable-snapshot-build if not provided explicitly.
37 lines
1.3 KiB
Plaintext
37 lines
1.3 KiB
Plaintext
ARG_ENABLE('phpdbg', 'Build phpdbg', 'no');
|
|
ARG_ENABLE('phpdbgs', 'Build phpdbg shared', 'no');
|
|
ARG_ENABLE('phpdbg-debug', 'Build phpdbg in debug mode to enable additional \
|
|
diagnostic output for developing and troubleshooting phpdbg itself', 'no');
|
|
|
|
PHPDBG_SOURCES='phpdbg.c phpdbg_prompt.c phpdbg_cmd.c phpdbg_info.c phpdbg_help.c phpdbg_break.c ' +
|
|
'phpdbg_print.c phpdbg_bp.c phpdbg_list.c phpdbg_utils.c ' +
|
|
'phpdbg_set.c phpdbg_frame.c phpdbg_watch.c phpdbg_win.c phpdbg_btree.c '+
|
|
'phpdbg_parser.c phpdbg_lexer.c phpdbg_sigsafe.c phpdbg_io.c phpdbg_out.c';
|
|
PHPDBG_DLL='php' + PHP_VERSION + 'phpdbg.dll';
|
|
PHPDBG_EXE='phpdbg.exe';
|
|
PHPDBG_CFLAGS='/DZEND_ENABLE_STATIC_TSRMLS_CACHE=1';
|
|
|
|
var PHP_PHPDBG_PGO = false;
|
|
var PHP_PHPDBGS_PGO = false;
|
|
|
|
if (PHP_PHPDBG == "yes") {
|
|
SAPI('phpdbg', PHPDBG_SOURCES, PHPDBG_EXE, PHPDBG_CFLAGS);
|
|
ADD_FLAG("LIBS_PHPDBG", "ws2_32.lib user32.lib");
|
|
ADD_FLAG("CFLAGS_PHPDBG", "/D YY_NO_UNISTD_H");
|
|
ADD_FLAG("LDFLAGS_PHPDBG", "/stack:8388608");
|
|
|
|
if(PHP_PHPDBG_DEBUG == "yes") {
|
|
ADD_FLAG("CFLAGS_PHPDBG", "/D PHPDBG_DEBUG=1");
|
|
}
|
|
}
|
|
|
|
if (PHP_PHPDBGS == "yes") {
|
|
SAPI('phpdbgs', PHPDBG_SOURCES, PHPDBG_DLL, '/D PHP_PHPDBG_EXPORTS');
|
|
ADD_FLAG("LIBS_PHPDBGS", "ws2_32.lib user32.lib");
|
|
ADD_FLAG("CFLAGS_PHPDBGS", "/D YY_NO_UNISTD_H");
|
|
|
|
if(PHP_PHPDBG_DEBUG == "yes") {
|
|
ADD_FLAG("CFLAGS_PHPDBGS", "/D PHPDBG_DEBUG=1");
|
|
}
|
|
}
|