2
0
mirror of https://gitlab.com/ita1024/waf.git synced 2025-01-08 09:25:08 +01:00

Better detection of the XLC compilers

This commit is contained in:
Thomas Nagy 2012-07-09 18:11:48 +02:00
parent f000843d5f
commit b05ab4d00d

View File

@ -1104,7 +1104,7 @@ def get_xlc_version(conf, cc):
except Errors.WafError:
conf.fatal('Could not find xlc %r' % cmd)
for v in (r"IBM XL C/C\+\+.*, V(?P<major>\d*)\.(?P<minor>\d*)", r"IBM XL C/C\+\+.*Version: V(?P<major>\d*)\.(?P<minor>\d*)"):
for v in (r"IBM XL C/C\+\+.*, V(?P<major>\d*)\.(?P<minor>\d*)", r"IBM XL C/C\+\+.*Version: (?P<major>\d*)\.(?P<minor>\d*)"):
version_re = re.compile(v, re.I | re.M).search
match = version_re(out or err)
if match: