Boost logo

Boost-Build :

Subject: Re: [Boost-build] [darwin][jam][g++-4.2] darwin build command adds '-Wno-long-double', unsupported in Mac gcc?
From: Vladimir Prus (ghost_at_[hidden])
Date: 2009-02-19 03:36:05


On Thursday 19 February 2009 11:30:19 Dean Michael Berris wrote:
> On Thu, Feb 19, 2009 at 4:16 PM, Vladimir Prus <ghost_at_[hidden]> wrote:
> > On Thursday 19 February 2009 11:08:31 Dean Michael Berris wrote:
> >>
> >> The output says:
> >>
> >> XXXXXXXXXXXXXXXXXXXXXXXXXX 4.2
> >>
> >> So this means the version check fails because it expects a trailing
> >> ".0" from $(version) when what we get is just 4.2 -- consider that my
> >> ~/user-config.jam has the version set explicitly:
> >>
> >> using darwin : 4.2 : g++-4.2 ;
> >>
> >> I guess there would be some more additional munging of the version
> >> parameter especially when it's not auto-discovered.
> >
> > I suggest you then use 4.2.0 explicitly -- or just don't specify a version
> > and let it be auto-detected.
> >
>
> That's the workaround I was thinking and have actually employed (just
> leave the version field blank). Thanks for the suggestion.
>
> >> Silly question though: does Boost.Build already support regular expressions?
> >
> > It supported them for a few years already.
> >
>
> Okay. Will doing a regex match on this be too much work? Or will that
> just be unnecessary?

Doing something here (e.g. comparing with 4.0 if there are just two
digits) might be good idea. Alternatively, we can always use real
compiler version for such checks. Can you test the attached patch,
after putting patch "4.2" in your user-config.jam?

- 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