Skip to content

Commit 854c37d

Browse files
committed
debug: set ZEND_DEBUG=1 for Windows build
1 parent 33481dd commit 854c37d

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

win32/build/confutils.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3436,10 +3436,10 @@ function toolset_setup_build_mode()
34363436
}
34373437
ADD_FLAG("CFLAGS", "/LD /MD");
34383438
if (PHP_SANITIZER == "yes" && CLANG_TOOLSET) {
3439-
ADD_FLAG("CFLAGS", "/Od /D NDebug /D NDEBUG /D ZEND_WIN32_NEVER_INLINE /D ZEND_DEBUG=0");
3439+
ADD_FLAG("CFLAGS", "/Od /D _DEBUG /D ZEND_WIN32_NEVER_INLINE /D ZEND_DEBUG=1");
34403440
} else {
34413441
// Equivalent to Release_TSInline build -> best optimization
3442-
ADD_FLAG("CFLAGS", "/Ox /D NDebug /D NDEBUG /GF /D ZEND_DEBUG=0");
3442+
ADD_FLAG("CFLAGS", "/Ox /D _DEBUG /GF /D ZEND_DEBUG=1");
34433443
}
34443444

34453445
// if you have VS.Net /GS hardens the binary against buffer overruns

0 commit comments

Comments
 (0)