Skip to content

Commit 6c7e3df

Browse files
committed
Avoid sanitizer/debug/debug-pack conflicts
1 parent e6665ed commit 6c7e3df

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

win32/build/config.w32

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -357,6 +357,12 @@ if (PHP_SECURITY_FLAGS == "yes") {
357357

358358
ARG_WITH("uncritical-warn-choke", "Disable some uncritical warnings", "yes");
359359
ARG_ENABLE("sanitizer", "Enable ASan (and UBSan) extensions", "no");
360+
if (PHP_SANITIZER == "yes" && PHP_DEBUG == "yes") {
361+
ERROR("Use of both --enable-sanitizer and --enable-debug not allowed.");
362+
}
363+
if (PHP_SANITIZER == "yes" && PHP_DEBUG_PACK == "no") {
364+
ERROR("--enable-sanitizer requires --enable-debug-pack");
365+
}
360366
if (VS_TOOLSET) {
361367
if (PHP_SANITIZER == "yes") {
362368
if (COMPILER_NUMERIC_VERSION < 1929) {

0 commit comments

Comments
 (0)