summaryrefslogtreecommitdiff
path: root/wscript
diff options
context:
space:
mode:
authorCarl Hetherington <cth@carlh.net>2016-05-23 14:51:20 +0100
committerCarl Hetherington <cth@carlh.net>2016-05-23 14:51:20 +0100
commit4e6b78d055dc3e456c5dbea2cfd584268c1da452 (patch)
tree53b020b6a09e60ef1b3228446b432c54e691077b /wscript
parenta545db4651e56eff854e2ed797f849b17bf108c9 (diff)
Fix to previous gcc version hack.
Diffstat (limited to 'wscript')
-rw-r--r--wscript2
1 files changed, 1 insertions, 1 deletions
diff --git a/wscript b/wscript
index 38dada21..6b5207a6 100644
--- a/wscript
+++ b/wscript
@@ -40,7 +40,7 @@ def configure(conf):
conf.load('compiler_cxx')
conf.env.append_value('CXXFLAGS', ['-Wall', '-Wextra', '-D_FILE_OFFSET_BITS=64', '-D__STDC_FORMAT_MACROS'])
gcc = conf.env['CC_VERSION']
- if gcc[0] >= 4 and gcc[1] > 1:
+ if int(gcc[0]) >= 4 and int(gcc[1]) > 1:
conf.env.append_value('CXXFLAGS', ['-Wno-maybe-uninitialized'])
conf.env.append_value('CXXFLAGS', ['-DLIBDCP_VERSION="%s"' % VERSION])