Boost logo

Boost-Build :

Subject: Re: [Boost-build] cxxflags and compilation of C files with clang
From: Steven Watanabe (watanabesj_at_[hidden])
Date: 2013-04-22 16:24:11


AMDG

On 03/26/2013 01:44 AM, Wieger Wesselink wrote:
> When compiling a C file with clang it looks like cxxflags settings are
> being passed to the compiler. My Jamroot contains
>
> exe a : a.c : ;
>
> When I use
>
> b2 clang cxxflags=-std=c++11
>
> the result is an error:
>
> compile.c.without-pth bin/clang-linux-3.0/debug/a.o
> error: invalid argument '-std=c++11' not allowed with 'C/ObjC'
>
> <snip>
>
> Is this a problem in Boost.Build?
>

Fixed in r84018.

In Christ,
Steven Watanabe


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