[cfe-dev] Testing C++14 mode in libc++

Justin Bogner mail at justinbogner.com
Fri Feb 20 14:50:03 PST 2015


Larisse Voufo <lvoufo at google.com> writes:
> On Fri, Feb 20, 2015 at 11:46 AM, Eric Fiselier <eric at efcs.ca> wrote:
>
>     What compiler are you using?
>
> clang 3.7 (trunk).
>  
>
>     >However, I can't help but think that they ought to be a way to
>     systematically test this mode (without messing with lit.site.cfg) before
>     shipping it off... to the buildbots...
>    
>     see: http://libcxx.llvm.org/lit_usage.html
>
> Thanks. Looks like 
>
> $lit --param std=c++1y ...
>
> works but 
>
> $lit --param std=c++14 ...
>
> does not, with "error: invalid value 'c++14' in '-std=c++14'".

IIRC you need to set --param cxx_under_test=/path/to/clang or these
tests will run with your system compiler. If you're getting invalid
value 'c++14', the clang you're using is not trunk (definitely pre-3.6).



More information about the cfe-dev mailing list