|
Boost-Build : |
From: Vladimir Prus (ghost_at_[hidden])
Date: 2004-07-02 01:59:04
pal.tw wrote:
> According to the description of module 'alias' ...
>
> --------------------------------------------------------
> alias platform-src : win.cpp : <os>NT ;
> alias platform-src : linux.cpp : <os>LINUX ;
> exe main : main.cpp platform-src ;
> --------------------------------------------------------
>
> The scripts will fail in BBv2. Because in NT, <os>LINUX is not
> defined.
> Conversely, <os>NT is not defined in lunux.
Heck, I've just made <os>NT work in condition but forgot that it can be placed
inside requirements as well :-(
Folks, how do you feel about some rule like:
use-property ( property )
which would be used like:
use-property <os>NT ;
and will make NT a valid value of the <os> feature. If <os>NT is defined
already, the above will be no-op?
This is something we planned for some time... maybe we should add it now?
Thoughts?
- 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