mirror of
https://gitlab.com/ita1024/waf.git
synced 2025-01-26 18:20:22 +01:00
Changed version option on windows to use /-prefix.
This commit is contained in:
parent
cc1d38d14c
commit
ad330d76bc
@ -39,10 +39,10 @@ def get_ifort_version(conf, fc):
|
||||
|
||||
if Utils.is_win32:
|
||||
version_re = re.compile(r"Intel[\sa-zA-Z()0-9,]*Version\s*(?P<major>\d*)\.(?P<minor>\d*)",re.I).search
|
||||
cmd = fc + ['--version']
|
||||
cmd = fc + ['/version']
|
||||
else:
|
||||
version_re = re.compile(r"ifort\s*\(IFORT\)\s*(?P<major>\d*)\.(?P<minor>\d*)",re.I).search
|
||||
cmd = fc
|
||||
cmd = fc + ['--version']
|
||||
|
||||
out, err = fc_config.getoutput(conf, cmd, stdin=False)
|
||||
if out:
|
||||
|
Loading…
x
Reference in New Issue
Block a user