conventions for requiring and selecting language versions

classic Classic list List threaded Threaded
2 messages Options
Reply | Threaded
Open this post in threaded view
|

conventions for requiring and selecting language versions

Boost - Testing mailing list

Hi,

I have started to use the `cxxstd` property to express project requirements. However, I noticed that quite a few test runners use `cxxflags` to add flags such as `-std=c++11`, thereby bypassing the boost.build filtering logic.

What is the suggested way to solve this ? Shouldn't we require users to use `cxxstd` rather than `<cxxflags>-std=...` ? Or if not, add some logic to Boost.Build to discover the presence of these values in `cxxflags` and automagically translate them into the corresponding `cxxstd` values ?

Thanks,


Stefan
--

      ...ich hab' noch einen Koffer in Berlin...
    

_______________________________________________
Boost-Testing mailing list
[hidden email]
https://lists.boost.org/mailman/listinfo.cgi/boost-testing
Reply | Threaded
Open this post in threaded view
|

Re: conventions for requiring and selecting language versions

Boost - Testing mailing list
AMDG

On 3/21/19 2:53 PM, stefan via Boost-Testing wrote:
>
> I have started to use the `cxxstd` property to express project
> requirements.

Please don't.  It's not intended for that purpose
and won't work reliably (as you seem to have discovered).
Express it in terms of Boost.Config instead.

> However, I noticed that quite a few test runners use
> `cxxflags` to add flags such as `-std=c++11`, thereby bypassing the
> boost.build filtering logic.
>
> What is the suggested way to solve this ? Shouldn't we require users to
> use `cxxstd` rather than `<cxxflags>-std=...` ? Or if not, add some
> logic to Boost.Build to discover the presence of these values in
> `cxxflags` and automagically translate them into the corresponding
> `cxxstd` values ?
>

In Christ,
Steven Watanabe
_______________________________________________
Boost-Testing mailing list
[hidden email]
https://lists.boost.org/mailman/listinfo.cgi/boost-testing