|
Boost-Build : |
From: Vladimir Prus (ghost_at_[hidden])
Date: 2004-04-05 04:20:08
David Abrahams wrote:
> > We can use
> >
> > bjam cflags=-mno-cygwin linkflags=-mno-cygwin
> >
> > I'm not sure that a special command line option is good idea. After all,
> > the original poster wants to always build without cygwin, so always
> > specifying a command line option is inconvenient.
>
> The idea was for people like me who want to test no-cygwin builds
> along with cygwin builds, as though they were separate toolsets. For
> that I want a non-free feature, I think.
I understand you now. I think separate toolset can be used for this, but
another solution is also possible
feature.subfeature toolset gcc : runtime
: cygwin nocygwin : propagated composite ;
feature.compose <toolset-gcc:runtime>nocygwin
: <cflags>-mno-cygwin <linkflags>-mno-cygwin ;
After this, you should be able to run
bjam gcc-cygwin gcc-nocygwin
(though I haven't tested it)
- 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