Boost logo

Boost-Build :

Subject: [Boost-build] Is this the right way to add compiler flags to specific libraries
From: Philipp Thomas (pth_at_[hidden])
Date: 2009-05-27 12:08:29


GCC 4.4, which is what we are currently in the development version of
openSUSE currently reports a number of false positive warnings regarding
strict-aliasing. Therefore I have to pass -Wno-strict-aliasing for those
libraries where these erroneous warnings are put out.

Now I'm still not very familiar with the jam syntax and the current features
of boost.build. As far as I've found out till now, something like

project boost/foo
     : source-location ../src
     : requirements <toolset-gcc:version>4.4:<cxxflags>-Wno-strict-aliasing
     ;

should do the trick, right?

Philipp


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