Boost logo

Boost-Build :

From: Jurko Gospodnetiæ (jurko.gospodnetic_at_[hidden])
Date: 2008-02-16 10:22:44


   Hi Jaroslav.

> it looks like '<rtti>off' does not turn off rtti for gcc and msvc-8.0
> toolsets.
>
> gcc toolset does not handle rtti feature at all which causes that rtti
> is generated by default. msvc toolset handles only <rtti>on, but rtti
> is turned on by default (at least since 8.0).

   Not a gcc expert and did not take the time to play around with this,
but should not the -frtti flag be passed to gcc explicitly? Just so we
do not depend on the default compiler behaviour?

   I did do 'gcc -v --help' on my cygwin gcc installation and it listed
the -frtti option but no -fno-rtti. Many other -fno-XXX options are
listed expliclitly so I assume there is no general rule that each -fXXX
option has its corresponding -fno-XXX option.

   Similar for msvc - should we change it to set /GR or /GR- based on
the current <rtti> setting and not depend on the default compiler
behaviour at all? This semms like it would work the same on all
supported compiler versions and there would be no need to version
specific code.

   If no one objects, I can apply the changes (including these explicit
option settings)...

   Best regards,
     Jurko Gospodnetiæ


Boost-Build list run by bdawes at acm.org, david.abrahams at rcn.com, gregod at cs.rpi.edu, cpdaniel at pacbell.net, john at johnmaddock.co.uk