Boost logo

Boost-Build :

Subject: Re: [Boost-build] Boost Build cxxflags and cflags
From: Steven Watanabe (watanabesj_at_[hidden])
Date: 2011-04-05 21:33:25


AMDG

On 04/05/2011 06:27 PM, Edward Diener wrote:
> On 4/5/2011 8:46 PM, Steven Watanabe wrote:
> How does the updating action decide if I am compiling for C++ or C in
> order to determine whether or not to use the <cxxflags> or the <cflags>
> I specify ?
>

Ah. I see what you're asking. Every target
has a type. If the type of the source is C,
then it will be compiled as C, if the type is
CPP, then it will be compiled as C++. The type
of existing file targets is deduced from their
extensions. You can explicitly set the type
of file using cast.

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