Skip to content

Commit c572f54

Browse files
committed
Stick with old flags for clang
1 parent 861040d commit c572f54

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

win32/build/confutils.js

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3445,7 +3445,11 @@ function toolset_setup_build_mode()
34453445
}
34463446
ADD_FLAG("CFLAGS", "/LD /MD");
34473447
if (PHP_SANITIZER == "yes") {
3448-
ADD_FLAG("CFLAGS", "/Ox /U NDebug /U NDEBUG /D ZEND_DEBUG=1");
3448+
if (VS_TOOLSET) {
3449+
ADD_FLAG("CFLAGS", "/Ox /U NDebug /U NDEBUG /D ZEND_DEBUG=1");
3450+
} else if (CLANG_TOOLSET) {
3451+
ADD_FLAG("CFLAGS", "/Od /D NDebug /D NDEBUG /D ZEND_WIN32_NEVER_INLINE /D ZEND_DEBUG=0");
3452+
}
34493453
} else {
34503454
// Equivalent to Release_TSInline build -> best optimization
34513455
ADD_FLAG("CFLAGS", "/Ox /D NDebug /D NDEBUG /GF /D ZEND_DEBUG=0");

0 commit comments

Comments
 (0)