B2 specifying toolsets and options

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

B2 specifying toolsets and options

Boost - Build mailing list
B2 specifying toolsets and options

I’m uncertain about providing options for various configurations.

If I have a user-config.jam that has specifications for toolset of gcc, msvc, and

Clang AND clang-win

And more than one version of Clang, say 8.0.0 and 7.1.0

And I am specifying various options…

Can/should I use <toolset>clang-win

Like this

<toolset>clang-win:<cxxflags>/std\:c++17

<toolset>clang:<cxxflags>-std=c++17

To obtain the different specification formats, one MSVC and the other Clang style

Will

<toolset>clang:<cxxflags>-v apply to both clang-win and clang?

Can I also fully qualify with compiler version to provide different options for different versions?

For example

<toolset>clang-win-7.0.1: :<cxxflags>/std\:c++14

<toolset>clang-win-8.0.0: :<cxxflags>/std\:c++latest

Thanks

Paul


_______________________________________________
Unsubscribe & other changes: https://lists.boost.org/mailman/listinfo.cgi/boost-build
Reply | Threaded
Open this post in threaded view
|

Re: B2 specifying toolsets and options

Boost - Build mailing list
AMDG

On 5/2/19 7:33 AM, Paul A Bristow via Boost-build wrote:

> I'm uncertain about providing options for various configurations.
>
> If I have a user-config.jam that has specifications for toolset of gcc, msvc,
> and
>
> Clang AND clang-win
>
> And more than one version of Clang, say 8.0.0 and 7.1.0
>
> And I am specifying various options.
>
> Can/should I use <toolset>clang-win
>
> Like this
>
> <toolset>clang-win:<cxxflags>/std\:c++17
>
> <toolset>clang:<cxxflags>-std=c++17
>
> To obtain the different specification formats, one MSVC and the other Clang
> style
>

Each conditional property is evaluated separately.
<toolset>clang will match any version of clang.
Also, internally, it's clang-win/clang-linux/clang-darwin.
There is no plain clang toolset.

> Will
>
> <toolset>clang:<cxxflags>-v apply to both clang-win and clang?
>

Yes.

> Can I also fully qualify with compiler version to provide different options for
> different versions?
>

Yes.

> For example
>
> <toolset>clang-win-7.0.1: :<cxxflags>/std\:c++14
> <toolset>clang-win-8.0.0: :<cxxflags>/std\:c++latest
>

This doesn't look syntactically correct.

In Christ,
Steven Watanabe
_______________________________________________
Unsubscribe & other changes: https://lists.boost.org/mailman/listinfo.cgi/boost-build
Reply | Threaded
Open this post in threaded view
|

Re: B2 specifying toolsets and options

Boost - Build mailing list
In reply to this post by Boost - Build mailing list
In addition to Steven said..

On Thu, May 2, 2019 at 8:33 AM Paul A Bristow via Boost-build <[hidden email]> wrote:

<toolset>clang-win:<cxxflags>/std\:c++17

Please be aware that the preferred method  specifying the language standard is to use the "cxxstd" feature <https://github.com/boostorg/build/blob/develop/src/tools/features/cxxstd-feature.jam>.

--
-- Rene Rivera
-- Grafik - Don't Assume Anything
-- Robot Dreams - http://robot-dreams.net


_______________________________________________
Unsubscribe & other changes: https://lists.boost.org/mailman/listinfo.cgi/boost-build