diff --git a/win32/build/config.w32 b/win32/build/config.w32 index 4c9103b9d51..7ef78eda714 100644 --- a/win32/build/config.w32 +++ b/win32/build/config.w32 @@ -411,3 +411,8 @@ ARG_ENABLE("security-flags", "Enable the compiler security flags", "yes"); if (PHP_SECURITY_FLAGS == "yes") { ADD_FLAG("LDFLAGS", "/NXCOMPAT /DYNAMICBASE "); } + +ARG_ENABLE("static-analyze", "Enable the VC compiler static analyze", "no"); +if (PHP_STATIC_ANALYZE == "yes") { + ADD_FLAG("CFLAGS", " /analyze "); +}