summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorarseny.kapoulkine <arseny.kapoulkine@99668b35-9821-0410-8761-19e4c4f06640>2010-05-17 07:42:34 +0000
committerarseny.kapoulkine <arseny.kapoulkine@99668b35-9821-0410-8761-19e4c4f06640>2010-05-17 07:42:34 +0000
commitdd9de685eb1af432a88af7840ca01f052ddb0c7e (patch)
tree3237a1c6a058f13796aaf35d1bbc44ac3765e6f9
parent2412872c09d83916faea53f66088b98027898e6d (diff)
tests: gcc version is now specified upon building
git-svn-id: http://pugixml.googlecode.com/svn/trunk@427 99668b35-9821-0410-8761-19e4c4f06640
-rw-r--r--Jamfile.jam2
-rw-r--r--Jamrules.jam4
-rw-r--r--tests/autotest-local.pl7
3 files changed, 9 insertions, 4 deletions
diff --git a/Jamfile.jam b/Jamfile.jam
index beba202..e3e5e9b 100644
--- a/Jamfile.jam
+++ b/Jamfile.jam
@@ -41,7 +41,7 @@ else
BUILD = build/$(toolset)/standard/$(configuration) ;
}
-if ( $(toolset:I=^mingw) || $(toolset) = gcc )
+if ( $(toolset:I=^mingw) || $(toolset:I=^gcc) )
{
CCFLAGS = -fprofile-arcs -ftest-coverage ;
LDFLAGS = -fprofile-arcs ;
diff --git a/Jamrules.jam b/Jamrules.jam
index 8170f88..4907b7e 100644
--- a/Jamrules.jam
+++ b/Jamrules.jam
@@ -1,8 +1,8 @@
# Rules for Jamfile.jam
-if ( $(toolset:I=^mingw) || $(toolset) = "gcc" )
+if ( $(toolset:I=^mingw) || $(toolset:I^=gcc) )
{
- if ( $(toolset) = "gcc" )
+ if ( $(toolset:I^=gcc) )
{
GCCPATH = "" ;
}
diff --git a/tests/autotest-local.pl b/tests/autotest-local.pl
index c655403..ebe785d 100644
--- a/tests/autotest-local.pl
+++ b/tests/autotest-local.pl
@@ -15,8 +15,13 @@ sub permute
@result;
}
+sub gcctoolset
+{
+ return 'gcc' . `gcc -dumpversion`;
+}
+
$fast = (shift eq 'fast');
-@toolsets = ($^O =~ /win/i) ? (bcc, cw, dmc, ic8, mingw34, mingw44, mingw45, msvc6, msvc7, msvc71, msvc8, msvc8_x64, msvc9, msvc9_x64, msvc10, msvc10_x64) : (gcc);
+@toolsets = ($^O =~ /win/i) ? (bcc, cw, dmc, ic8, mingw34, mingw44, mingw45, msvc6, msvc7, msvc71, msvc8, msvc8_x64, msvc9, msvc9_x64, msvc10, msvc10_x64) : (&gcctoolset());
@configurations = (debug, release);
@defines = (PUGIXML_NO_XPATH, PUGIXML_NO_EXCEPTIONS, PUGIXML_NO_STL, PUGIXML_WCHAR_MODE);