From c96c83b8cfcb82f4aacaade5afc3a313cdb5e55e Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jurko=20Gospodneti=C4=87?= Date: Sat, 16 Feb 2008 17:03:54 +0000 Subject: [PATCH] Made the msvc toolset always explicitly enable or disable rtti support based on the feature value instead of only setting it if on and depending on it being disabled by default. The original behaviour did not work well with msvc 8.0 for which there was not way to disable rtti support as that compiler enables rtti support by default. [SVN r43282] --- src/tools/msvc.jam | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/tools/msvc.jam b/src/tools/msvc.jam index ebcc56d7a..868e4261f 100644 --- a/src/tools/msvc.jam +++ b/src/tools/msvc.jam @@ -663,7 +663,11 @@ flags msvc.compile C++FLAGS on/off/on/on/off : /EHa ; flags msvc.compile C++FLAGS on/on/on : /EHac ; +# By default 8.0 enables rtti support while prior versions disabled it. We +# simply enable or disable it expliclty so we do not have to depend on this +# default behaviour. flags msvc.compile CFLAGS on : /GR ; +flags msvc.compile CFLAGS off : /GR- ; flags msvc.compile CFLAGS off/shared : /MD ; flags msvc.compile CFLAGS on/shared : /MDd ;