From d2b85e2a5f94aea7a7ad5dd49a30b957a5cff553 Mon Sep 17 00:00:00 2001 From: "arseny.kapoulkine@gmail.com" Date: Wed, 7 Mar 2012 09:01:36 +0000 Subject: tests: Fixed gcc version detection git-svn-id: http://pugixml.googlecode.com/svn/trunk@852 99668b35-9821-0410-8761-19e4c4f06640 --- Jamrules.jam | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/Jamrules.jam b/Jamrules.jam index 709c100..54f3191 100644 --- a/Jamrules.jam +++ b/Jamrules.jam @@ -69,7 +69,7 @@ if ( $(toolset:I=^mingw) || $(toolset:I=^gcc) || $(toolset:I=^bada) || $(toolset LDFLAGS += $(ARCH) ; } - local VERSION = [ Shell "$(GCCPATH)gcc -dumpversion" ] ; + GCCVERSION = [ Shell "$(GCCPATH)gcc -dumpversion" ] ; rule GetCFlags CONFIG : DEFINES { @@ -81,7 +81,7 @@ if ( $(toolset:I=^mingw) || $(toolset:I=^gcc) || $(toolset:I=^bada) || $(toolset RESULT += -Wunused -Wstrict-aliasing=2 -Wundef -Wshadow -Wredundant-decls ; # gcc 4.0 has some warning regressions - if ( ! $(VERSION:I=4\.0) ) + if ( ! $(GCCVERSION:I=4\.0) ) { RESULT += -Wold-style-cast ; # gives warnings for fpclassify() on gcc 4.0.1 RESULT += -Wswitch-default ; # gives false-positives for couple of switches on template argument on gcc 4.0.1 @@ -89,7 +89,7 @@ if ( $(toolset:I=^mingw) || $(toolset:I=^gcc) || $(toolset:I=^bada) || $(toolset } # these warnings are supported on newer GCC versions only - if ( $(VERSION) >= "4.4.0" ) + if ( $(GCCVERSION) >= "4.4.0" ) { RESULT += -Wstrict-null-sentinel -Wlogical-op -Wmissing-declarations ; } -- cgit v1.2.3