From 0d3c6914ad596ea31afae9e4a393b6efa13ecbba 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 | 10 ++++++++++ 1 file changed, 10 insertions(+) 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 "); +} -- 2.50.1