diff options
author | arseny.kapoulkine <arseny.kapoulkine@99668b35-9821-0410-8761-19e4c4f06640> | 2010-12-19 11:57:11 +0000 |
---|---|---|
committer | arseny.kapoulkine <arseny.kapoulkine@99668b35-9821-0410-8761-19e4c4f06640> | 2010-12-19 11:57:11 +0000 |
commit | d77e8a42b5346f95e1ae75ad94b0102672521c5c (patch) | |
tree | a69e74bd02d45ec0b3841ca67e576268d15f05bf /Jamrules.jam | |
parent | d99745be21ad9affc7e127944556c74da07440c4 (diff) |
Several relatively new options are enabled for GCC4.4+ instead of everything except GCC3.4
git-svn-id: http://pugixml.googlecode.com/svn/trunk@801 99668b35-9821-0410-8761-19e4c4f06640
Diffstat (limited to 'Jamrules.jam')
-rw-r--r-- | Jamrules.jam | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/Jamrules.jam b/Jamrules.jam index d253a69..dc7ba35 100644 --- a/Jamrules.jam +++ b/Jamrules.jam @@ -39,7 +39,9 @@ if ( $(toolset:I=^mingw) || $(toolset:I=^gcc) ) RESULT += -Woverloaded-virtual -Wno-pmf-conversions -Wsign-promo -Wformat=2 -Winit-self -Wswitch-default ; RESULT += -Wunused -Wstrict-aliasing=2 -Wundef -Wshadow -Wredundant-decls ; - if ( $(toolset) != mingw34 ) + local REG_GCC44_PLUS = "(gcc|mingw)4.?[4-9]" ; + + if ( $(toolset:I=$(REG_GCC44_PLUS)) ) { RESULT += -Wstrict-null-sentinel -Wlogical-op -Wmissing-declarations ; } |