|
Boost-Build : |
From: Vladimir Prus (ghost_at_[hidden])
Date: 2008-05-18 13:14:54
On Tuesday 13 May 2008 13:10:19 John Reid wrote:
>
> Mat Marcus wrote:
> > Summary: In VC8 (Dev Studio 2005) and later, Microsoft's 'secure' STL
> > feature (enabled by default) can cause a slowdown of more than an
> > order of magnitude in the execution of performance critical algorithms
> > in release builds. I suspect that many projects would benefit from
> > ensuring that _SECURE_SCL=0 for release configurations. I recommend
> > that boost ships with this feature disabled by default for (at least)
> > release builds.
> >
>
>
> 2 things:
>
> 1) I wanted to point out a relatively straightforward way to ensure all
> your code has _SECURE_SCL=0 defined. In your site-config.jam or
> user-config.jam put the following using directive:
>
> using msvc : : : <define>_SECURE_SCL=0 ;
>
>
> 2) I wanted to check I have the syntax correct as I do not see
> _SECURE_SCL in the .rsp files in my bin directory.
Per http://ln-s.net/1sG9 this syntax is not correct. You need:
using msvc : : : <compileflags>-D_SECURE_SCL=0 ;
- Volodya
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