summaryrefslogtreecommitdiff
path: root/coreconf
diff options
context:
space:
mode:
authorJan Beich <jbeich@FreeBSD.org>2016-12-01 10:05:27 +1100
committerJan Beich <jbeich@FreeBSD.org>2016-12-01 10:05:27 +1100
commita660a2f354fec1c9ba81d618d8003ffbbcc08fb5 (patch)
treec7fe35f0f79343e77c1fc224142dce107eb64325 /coreconf
parentae7249876eb4b49baca3aa3ae9e2c719086084a7 (diff)
downloadnss-hg-a660a2f354fec1c9ba81d618d8003ffbbcc08fb5.tar.gz
Bug 1321296 - Make sure to compare GCC version as integers. r=mt
Diffstat (limited to 'coreconf')
-rw-r--r--coreconf/werror.py1
1 files changed, 1 insertions, 0 deletions
diff --git a/coreconf/werror.py b/coreconf/werror.py
index a37fad95f..77420a144 100644
--- a/coreconf/werror.py
+++ b/coreconf/werror.py
@@ -25,6 +25,7 @@ def main():
try:
v = subprocess.check_output([cc, '-dumpversion'], stderr=sink)
v = v.strip(' \r\n').split('.')
+ v = list(map(int, v))
if v[0] < 4 or (v[0] == 4 and v[1] < 8):
# gcc 4.8 minimum
return False