|
Boost-Build : |
From: Vladimir Prus (ghost_at_[hidden])
Date: 2005-05-23 07:41:17
On Monday 23 May 2005 16:05, David Abrahams wrote:
> > Yea, sorry. IIRC, we basically agreed that 'using msvc' should try to
> > detect msvc and if found, initialize it. That's what Dave suggests above
> > and it's what 'using msvc' does at the moment ;-), except that:
> > 1. It issues a warning if msvc is not found.
> > 2. The detection logic in msvc.jam and msvc-config.jam is different.
> >
> > I think to move further we need to agree that the only two questions are:
> > 1. Which detection logic is best
>
> The one using the registry is definitely best.
Don't have an opinion here.
> > 2. Whether we should have one file, that includes the detection logic,
> > or a separate xx-config with detection logic.
>
> I don't think that's an important question.
Then I don't understand why msvc-config.jam is any different then msvc.jam
with disabled warning.
I'd rather not have two files for a single toolset.
> >> > of course we need to get msvc-config.jam to handle vc6.
> >>
> >> If I had it I could figure it out... Although it's really just a matter
> >> of knowing how it sets up the registry when installed.
> >>
> >> > Also, versions should be registered highest-to-lowest, and we should
> >> > implement the ability to do a versionless build, which should pick the
> >> > first version registered. So if 8.0 is installed,
> >> >
> >> > bjam msvc
> >> >
> >> > should be equivalent to
> >> >
> >> > bjam msvc-8.0
> >> >
> >> > Thoughts?
> >>
> >> I'm all for that.
> >
> > I think that if 'using msvc' with detect/register 8.0 first, then
> >
> > bjam msvc
> >
> > will be the same as
> >
> > bjam msvc-8.0
> >
> > by using default properties, automatically.
>
> I don't understand anything you said, unless it's just a rephrasing of
> what I wrote above it.
Try 2: right now, if you add
using msvc : 8.0 ;
in user-config.jam, then
bjam msvc
works and is the same as
bjam msvc-8.0
There's no need to do anything.
> > There are some details:
> >
> > * does 'using msvc' initializes all found msvc version? Or only one?
>
> All. It's no cost.
What if no registry keys are available and there are two 'cl.exe' in PATH?
Then it's not possible to guess the versions of those cl.exe
> > * what if user issues explicit 'using msvc : 8.0 ....... ' after 8.0
> > is already initialized
>
> Then re-initialize it per the request.
>
> Users should always be able to override what their site administrator
> does in site-config.jam
OK.
-- 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