Boost logo

Boost :

Subject: Re: [boost] [build] Default compiler options for a toolset
From: Steven Watanabe (watanabesj_at_[hidden])
Date: 2013-11-18 15:01:26


On 11/18/2013 10:56 AM, Edward Diener wrote:
> How are the default compiler options for a toolset chosen ? Is it in the
> .jam file for the compiler toolset and, if so, where is it specified ?

Options are specified by toolset.flags in the msvc.jam (for msvc).
For example:

flags como-win CFLAGS <inlining>off : --no_inlining ;

(I'm using como as an example, because it's simple.
msvc and gcc are a bit more complex, because they
are designed to handle multiple versions.)

This says:
for every target which is created by actions in como-win, if
the value of the feature <inlining> is set to off, then
append "--no_inlining" to the variable CFLAGS.

Then CFLAGS is used like this:

actions compile.c++
    $(CONFIG_COMMAND) -c ... -D$(DEFINES) $(CFLAGS) ... -o "$(<)" "$(>)"

In Christ,
Steven Watanabe

Boost list run by bdawes at, gregod at, cpdaniel at, john at