From: Vladimir Prus (ghost_at_[hidden])
Date: 2005-05-24 09:38:30
On Tuesday 24 May 2005 18:04, David Abrahams wrote:
> This comment appears to be extremely misleading.
> # The following options work only for 7* versions. It means
> # that if the user has not specified a version he gets 6.0 compatible
> # behavious (i.e. a bit buggy)
> if [ MATCH ^(7\..*) : $(version) ]
> flags msvc.compile CFLAGS $(condition) : /Zc:forScope /Zc:wchar_t ;
> AFAICT, this means that an vc7* gives vc6 compatible for loop and
> wchar_t behaviors by default and that we're overriding that.
> The comment appears to state that if the user only has version 7 or
> 7.1 installed, but doesn't specify a version, he'll get vc6-compatible
> behavior from Boost.Build. AFAICT that is a lie unless we're also
> unable to detect which version he has installed.
The exact meaning of the above comment is this:
1. vc7 does have /Zc:forScope and /Zc:wchar_t by default
2. vc6 does not have those options at all.
3. Unless we're sure that we are dealing with vc7, we don't add those
4. We can be sure it's vc7 either if user specified 7.* as version, or
we have found 7.* in install path.
Hope this clarifies the matter,
-- Vladimir Prus http://vladimir_prus.blogspot.com Boost.Build V2: http://boost.org/boost-build2
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