Boost logo

Boost-Build :

From: Vladimir Prus (ghost_at_[hidden])
Date: 2004-06-15 02:09:39


Mark Elston wrote:
> I have been trying to find a way to change the compiler settings
> for compiling an app with gcc using bjam V2.

Hi Mark,

> Everytime I run bjam it uses gcc (or g++) with the -Wall and
> -ftemplate-depth-100 and -fno-inline. How do I go about
> changing these parameters?

The "-fno-inline" is there only for <inlining>off. To turn it on, you can

1. Pass "inlining=on" on the command line
2. Add "<inlining>on" to project requirements
3. Add "<inlining>on" to project "default build"

The '-Wall' and '-ftemplate-depth-100' are hardcoded in gcc.jam. However, you
can pass

cxxflags=-w cxxflags=-ftemplate-depth-1000

on the command line and those options will appear on the command line after
hardcoded ones, disabling all warnings and increasing template depth,
respectively. Of course, those properties can be set in project requirements
too.

HTH,
Volodya

 


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