|
Boost Testing : |
Subject: Re: [Boost-testing] Teeks clang tests all C++98?
From: Tom Kent (lists_at_[hidden])
Date: 2017-02-28 12:25:39
On Tue, Feb 28, 2017 at 3:30 AM, Niklas Angare via Boost-Testing <
boost-testing_at_[hidden]> wrote:
> Tom Kent wrote:
>
>> On Thu, Feb 23, 2017 at 2:17 AM, Niklas Angare via Boost-Testing <
>> boost-testing_at_[hidden]> wrote:
>>
>> "Tom Kent via Boost-Testing" <boost-testing_at_[hidden]> wrote:
>>>
>>> On Wed, Feb 22, 2017 at 1:16 PM, John Maddock via Boost-Testing <
>>>> boost-testing_at_[hidden]> wrote:
>>>>
>>>> Nearly all the Teeks clang tests are in C++98 mode in-spite of their
>>>>
>>>>> names
>>>>>
>>>>> ...
>>>>
>>>
>>> Hmm, that's alarming. Any clang or user-config.jam experts out there who
>>>> can tell me what switches are needed to get C++11/14/1x/1y/1z/etc
>>>> support
>>>> to turn on?
>>>>
>>>>
>>> I believe you need to add <cxxflags> or <compileflags> plus quotes to
>>> user-config.jam.
>>>
>>> Example:
>>> using clang : 3.5~c++14 : clang++-3.5 : <cxxflags>"-Wno-c99-extensions
>>> -std=c++14" ;
>>>
>>>
>> Thanks! I'll go start rebuilding the docker images with an updated
>> user-config.jam.
>>
>> Do you know where this is documented so I can reference it?
>>
>
> It's mostly documented here:
> http://www.boost.org/build/doc/html/bbv2/reference/tools.html
Yeah, that looks familiar. Despite what I had pasted previously, my
user-config.jam did have the <cxxflags> section, but the problem was that I
wasn't quoting the options that followed, so the second one (-std=c++14)
was getting cut off.
If I get time, I'll submit a pull request against that page to add an
actual example showing how to group multiple options that way.
Out of curosity/clarity, is it possible to specify multiple instances of a
tag instead of quoting? e.g. `<cxxflags>-Wno-c99-extensions
<cxxflags>-std=c++14` instead of `<cxxflags>"-Wno-c99-extensions
-std=c++14"`?
Tom