From eda798fd7a95e098660c3fa6c356eae5afb04302 Mon Sep 17 00:00:00 2001 From: Pierre Joye Date: Sun, 9 Jan 2011 21:38:46 +0000 Subject: [PATCH] - add configure option to enable the builtin static analyzer (will be enabled for snaps' log) --- win32/build/config.w32 | 5 +++++ 1 file changed, 5 insertions(+) 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 "); +}