Boost logo

Boost-Build :

Subject: Re: [Boost-build] How to add MSVC compiler options to boost build command(v2 not bjam)?
From: Juraj Ivanèiæ (juraj.ivancic_at_[hidden])
Date: 2011-10-28 08:40:21


On 26.10.2011. 6:21, Tracy wrote:
> Hi,
> I'm trying to build boost using MSVC compiler, and I want to change the
> default warning level from W3 to W4, but I don't konw how to pass this
> option to the command line.
> For example, my build command is this:
> "b2 --toolset=msvc-10.0 --buildtype=complete stage"
> How could I pass the warning level to the compiler?
> Thanks a lot for any help here.

Add 'warnings=all' to the command line. On MSVC this resolves to /W4.


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