From adbe58dea5516e7079589ccab52a0fa82f31302d Mon Sep 17 00:00:00 2001 From: Vladimir Prus Date: Fri, 30 May 2008 05:29:27 +0000 Subject: [PATCH] Don't use the /Wp64 option on msvc 9.0. Patch from Jaroslav Gresula. [SVN r45934] --- v2/tools/msvc.jam | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) diff --git a/v2/tools/msvc.jam b/v2/tools/msvc.jam index 868e4261f..f8eb08442 100644 --- a/v2/tools/msvc.jam +++ b/v2/tools/msvc.jam @@ -435,8 +435,14 @@ rule configure-version-specific ( toolset : version : condition ) # Some version of msvc have a bug, that cause deprecation # warning to be emitted even with /W0 toolset.flags $(toolset).compile CFLAGS $(condition)/off : /wd4996 ; - # 64-bit compatibility warning - toolset.flags $(toolset).compile CFLAGS $(condition)/all : /Wp64 ; + + if [ MATCH ^([78]\\.) : $(version) ] + { + # 64-bit compatibility warning + # deprecated since 9.0, see + # http://msdn.microsoft.com/en-us/library/yt4xw8fh.aspx + toolset.flags $(toolset).compile CFLAGS $(condition)/all : /Wp64 ; + } } #