From 7db25f99cdbe49958e7d204d1ea97f8dadfaf845 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] --- src/tools/msvc.jam | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) diff --git a/src/tools/msvc.jam b/src/tools/msvc.jam index 868e4261f..f8eb08442 100644 --- a/src/tools/msvc.jam +++ b/src/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 ; + } } #