File tree Expand file tree Collapse file tree 2 files changed +8
-3
lines changed Expand file tree Collapse file tree 2 files changed +8
-3
lines changed Original file line number Diff line number Diff line change @@ -289,7 +289,7 @@ char *alloca();
289
289
(_default)
290
290
#endif
291
291
292
- #if ZEND_DEBUG
292
+ #if ZEND_DEBUG || defined(ZEND_WIN32_NEVER_INLINE)
293
293
# define zend_always_inline inline
294
294
# define zend_never_inline
295
295
#else
Original file line number Diff line number Diff line change @@ -3411,8 +3411,13 @@ function toolset_setup_build_mode()
3411
3411
ADD_FLAG ( "CFLAGS" , "/Zi" ) ;
3412
3412
ADD_FLAG ( "LDFLAGS" , "/incremental:no /debug /opt:ref,icf" ) ;
3413
3413
}
3414
- // Equivalent to Release_TSInline build -> best optimization
3415
- ADD_FLAG ( "CFLAGS" , "/LD /MD /W3 /Ox /D NDebug /D NDEBUG /D ZEND_WIN32_FORCE_INLINE /GF /D ZEND_DEBUG=0" ) ;
3414
+ ADD_FLAG ( "CFLAGS" , "/LD /MD /W3" ) ;
3415
+ if ( PHP_SANITIZER == "yes" && CLANG_TOOLSET ) {
3416
+ ADD_FLAG ( "CFLAGS" , "/Od /D NDebug /D NDEBUG /D ZEND_WIN32_NEVER_INLINE /D ZEND_DEBUG=0" ) ;
3417
+ } else {
3418
+ // Equivalent to Release_TSInline build -> best optimization
3419
+ ADD_FLAG ( "CFLAGS" , "/Ox /D NDebug /D NDEBUG /D ZEND_WIN32_FORCE_INLINE /GF /D ZEND_DEBUG=0" ) ;
3420
+ }
3416
3421
3417
3422
// if you have VS.Net /GS hardens the binary against buffer overruns
3418
3423
// ADD_FLAG("CFLAGS", "/GS");
You can’t perform that action at this time.
0 commit comments