From: Pierre Joye Date: Sun, 9 Jan 2011 21:38:46 +0000 (+0000) Subject: - add configure option to enable the builtin static analyzer (will be enabled for... X-Git-Tag: php-5.3.6RC1~140 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=0d3c6914ad596ea31afae9e4a393b6efa13ecbba;p=php - add configure option to enable the builtin static analyzer (will be enabled for snaps' log) --- diff --git a/win32/build/config.w32 b/win32/build/config.w32 index 99cb09c7cb..d3cd90ae41 100644 --- a/win32/build/config.w32 +++ b/win32/build/config.w32 @@ -407,3 +407,13 @@ if (PHP_DSP != "no") { } FSO.CreateFolder("tmp"); } + +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 "); +}