Boost logo

Boost-Build :

Subject: Re: [Boost-build] adding tests conditional on compiler's C++11 support
From: John Maddock (jz.maddock_at_[hidden])
Date: 2016-11-17 14:35:54


> One particular case illustrates the problem. See the test matrix
> http://www.boost.org/development/tests/develop/developer/serialization.html
> the test columns Sandia-darwin-c++11 and Sandia-darwin. Also of
> interest is the adjacent column timber-macOS. All tests are shown
> being run with compiler version 4.2.1. (I'll leave aside the question
> as what difference the clang part of the compiler name means.
>
> One column shows test_forward... failing with the above test. It gets
> the value of BOOST_NO_CXX11_HDR_FORWARD_LIST from the config file.
> While the bjam processor gets the "requires" from ...? It seems they
> are not getting these from the same source and that they are getting
> different values. In particular it looks like Jam is testing for the
> existence of <forward_list> which my program is checking config.hpp
> and that these are out of sync.

Just catching up on this... this is *not* gcc, it's Clang 7 with libc++,
can someone with this combination installed on Darwin let me know
whether <forward_list> really is fully supported even in C++03 mode?

Thanks, John.

PS To Robert, best to code your program as:

#ifndef BOOST_NO_CXX11_HDR_FORWARD_LIST

// main tests go here...

#else

int main() { return 0; }

#endif

Then if you still add the config-checks to the Jamfile to prevent
unnecessary tests being built, you should have all the bases covered.


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