mirror of
https://gitlab.com/ita1024/waf.git
synced 2024-12-24 10:15:05 +01:00
Do a multiline search for the NAG compiler version string
This commit is contained in:
parent
e7325b2b89
commit
3e3e391100
@ -36,7 +36,7 @@ def nag_modifier_platform(conf):
|
||||
def get_nag_version(conf, fc):
|
||||
"""Get the NAG compiler version"""
|
||||
|
||||
version_re = re.compile(r"NAG Fortran Compiler *Release *(?P<major>\d*)\.(?P<minor>\d*)", re.I).search
|
||||
version_re = re.compile(r"^NAG Fortran Compiler *Release *(?P<major>\d*)\.(?P<minor>\d*)", re.M).search
|
||||
cmd = fc + ['-v']
|
||||
|
||||
out, err = fc_config.getoutput(conf,cmd,stdin=False)
|
||||
|
Loading…
Reference in New Issue
Block a user