Boost logo

Boost-Build :

From: Reece Dunn (msclrhd_at_[hidden])
Date: 2005-09-17 09:47:44


I have attached a patch to add warning support. At the moment there is
only support for the msvc, borland and cw toolsets.

- Reece
 --------------050609070000090000030806 Content-Type: text/plain;
name="warnings.diff"
Content-Transfer-Encoding: 7bit
Content-Disposition: inline;
filename="warnings.diff"

==== //thirdparty/boost/tools/build/v2/tools/borland.jam#4 - f:/devel\drop\boost\tools\build\v2\tools\borland.jam ====
@@ -67,6 +67,10 @@
flags borland CFLAGS <inlining>on : -vi -w-inl ;
flags borland CFLAGS <inlining>full : -vi -w-inl ;

+flags borland.compile OPTIONS <warnings>on : -w ;
+flags borland.compile OPTIONS <warnings>all : -w ;
+flags borland.compile OPTIONS <warnings-as-errors>on : -w! ;
+

# Deal with various runtime configs...

==== //thirdparty/boost/tools/build/v2/tools/builtin.jam#9 - f:/devel\drop\boost\tools\build\v2\tools\builtin.jam ====
@@ -58,6 +58,15 @@
feature archiveflags : : free ;
feature version : : free ;

+feature warnings :
+ default # use the compilers default warning settings
+ on # turn warnings on
+ off # turn warnings off
+ all # enable all warnings
+ : propagated ;
+
+feature warnings-as-errors : off on : propagated ;
+
feature.feature location-prefix : : free ;

==== //thirdparty/boost/tools/build/v2/tools/cw.jam#3 - f:/devel\drop\boost\tools\build\v2\tools\cw.jam ====
@@ -133,6 +133,11 @@
flags cw.compile CFLAGS <exception-handling>off : -Cpp_exceptions off ;
flags cw.compile CFLAGS <rtti>off : -RTTI off ;

+flags cw.compile CFLAGS <warnings>on : -w on ;
+flags cw.compile CFLAGS <warnings>off : -w off ;
+flags cw.compile CFLAGS <warnings>all : -w all ;
+flags cw.compile CFLAGS <warnings-as-errors>on : -w error ;
+
flags cw.compile USER_CFLAGS <cflags> : ;
flags cw.compile.c++ USER_CFLAGS <cxxflags> : ;

==== //thirdparty/boost/tools/build/v2/tools/msvc.jam#13 - f:/devel\drop\boost\tools\build\v2\tools\msvc.jam ====
@@ -268,6 +268,11 @@
flags msvc.compile CFLAGS <inlining>on : /Ob1 ;
flags msvc.compile CFLAGS <inlining>full : /Ob2 ;

+flags msvc.compile CFLAGS <warnings>on : /W3 ;
+flags msvc.compile CFLAGS <warnings>off : /W0 ;
+flags msvc.compile CFLAGS <warnings>all : /W4 /Wp64 ;
+flags msvc.compile CFLAGS <warnings-as-errors>on : /WX ;
+
flags msvc.compile C++FLAGS <exception-handling>on/<asynch-exceptions>off/<extern-c-nothrow>off : /EHs ;
flags msvc.compile C++FLAGS <exception-handling>on/<asynch-exceptions>off/<extern-c-nothrow>on : /EHsc ;
flags msvc.compile C++FLAGS <exception-handling>on/<asynch-exceptions>on/<extern-c-nothrow>off : /EHa ;
 --------------050609070000090000030806--


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