@@ -3421,30 +3421,30 @@ function toolset_setup_common_libs()
3421
3421
3422
3422
function toolset_setup_build_mode ( )
3423
3423
{
3424
- if ( PHP_DEBUG == "yes" ) {
3424
+ /* if (PHP_DEBUG == "yes") */ {
3425
3425
ADD_FLAG ( "CFLAGS" , "/LDd /MDd /Od /D _DEBUG /D ZEND_DEBUG=1 " +
3426
3426
( X64 ?"/Zi" :"/ZI" ) ) ;
3427
3427
ADD_FLAG ( "LDFLAGS" , "/debug" ) ;
3428
3428
// Avoid problems when linking to release libraries that use the release
3429
3429
// version of the libc
3430
3430
ADD_FLAG ( "PHP_LDFLAGS" , "/nodefaultlib:msvcrt" ) ;
3431
- } else {
3432
- // Generate external debug files when --enable-debug-pack is specified
3433
- if ( PHP_DEBUG_PACK == "yes" ) {
3434
- ADD_FLAG ( "CFLAGS" , "/Zi" ) ;
3435
- ADD_FLAG ( "LDFLAGS" , "/incremental:no /debug /opt:ref,icf" ) ;
3436
- }
3437
- ADD_FLAG ( "CFLAGS" , "/LD /MD" ) ;
3438
- if ( PHP_SANITIZER == "yes" && CLANG_TOOLSET ) {
3439
- ADD_FLAG ( "CFLAGS" , "/Od /D _DEBUG /D ZEND_WIN32_NEVER_INLINE /D ZEND_DEBUG=1" ) ;
3440
- } else {
3441
- // Equivalent to Release_TSInline build -> best optimization
3442
- ADD_FLAG ( "CFLAGS" , "/Ox /D _DEBUG /GF /D ZEND_DEBUG=1" ) ;
3443
- }
3444
-
3445
- // if you have VS.Net /GS hardens the binary against buffer overruns
3446
- // ADD_FLAG("CFLAGS", "/GS");
3447
- }
3431
+ // } else {
3432
+ // // Generate external debug files when --enable-debug-pack is specified
3433
+ // if (PHP_DEBUG_PACK == "yes") {
3434
+ // ADD_FLAG("CFLAGS", "/Zi");
3435
+ // ADD_FLAG("LDFLAGS", "/incremental:no /debug /opt:ref,icf");
3436
+ // }
3437
+ // ADD_FLAG("CFLAGS", "/LD /MD");
3438
+ // if (PHP_SANITIZER == "yes" && CLANG_TOOLSET) {
3439
+ // ADD_FLAG("CFLAGS", "/Od /D _DEBUG /D ZEND_WIN32_NEVER_INLINE /D ZEND_DEBUG=1");
3440
+ // } else {
3441
+ // // Equivalent to Release_TSInline build -> best optimization
3442
+ // ADD_FLAG("CFLAGS", "/Ox /D _DEBUG /GF /D ZEND_DEBUG=1");
3443
+ // }
3444
+ //
3445
+ // // if you have VS.Net /GS hardens the binary against buffer overruns
3446
+ // // ADD_FLAG("CFLAGS", "/GS");
3447
+ // }
3448
3448
}
3449
3449
3450
3450
function object_out_dir_option_handle ( )
0 commit comments