|
Boost-Build : |
Subject: Re: [Boost-build] Jamfile syntax question
From: Steven Watanabe (watanabesj_at_[hidden])
Date: 2016-12-23 16:49:42
AMDG
On 12/23/2016 10:03 AM, Robert Ramey wrote:
> <snip>
> if ! $(BOOST_ARCHIVE_LIST) {
> if [ requires std_wstreambuf ] {
> <snip>
>
> # enable the tests which don't depend on a particular archive
> BOOST_SERIALIZATION_TEST = true ;
> }
>
> Will this work as want it to?
>
No. [ requires std_wstreambuf ] should be
used in target requirements. If you use
it in an if statement, it will always evaluate
as true (requires doesn't return a boolean value.
Treating the result as a boolean is syntactically
legal, but doesn't do what you want). Keep in mind,
that it's entirely possible to build with a compiler
that supports wstream and one that doesn't simultaneously.
In Christ,
Steven Watanabe
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