Boost logo

Boost-Build :

Subject: Re: [Boost-build] How to add MSVC compiler options to boost build command(v2 not bjam)?
From: Lars Viklund (zao_at_[hidden])
Date: 2011-10-26 07:33:40


On Wed, Oct 26, 2011 at 08:44:46AM -0200, Paulo Márcio Figueiredo Alves wrote:
> b2 --toolset=msvc-10.0 --buildtype=complete stage *cxxflags=/W4*

Without the asterisks (*), of course. They are not part of the command
line, and a somewhat poor choice of emphasis characters.

Explaining what is done, <cxxflags> is a Boost.Build property, much like
<runtime-link>, <address-model>, and so on.

The way you indicate those on the b2 command line is by stripping the
angle-brackets (<), (>) and indicate the value after an equals sign (=),
resulting in things like:

address-model=64 link=static cxxflags=/W4

Also note that toolset is a property, so it shouldn't really have the
leading double-dash (--), that is just allowed for historical reasons.

-- 
Lars Viklund | zao_at_[hidden]

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