mirror of
https://gitlab.com/ita1024/waf.git
synced 2024-11-22 01:46:15 +01:00
Use correct batch filed and function for Intel Fortran detection on Windows. (#2063)
This commit is contained in:
parent
0be92e74ac
commit
bef2cf13ec
@ -137,7 +137,7 @@ def gather_ifort_versions(conf, versions):
|
||||
except OSError:
|
||||
pass
|
||||
else:
|
||||
batch_file=os.path.join(path,'bin','iclvars.bat')
|
||||
batch_file=os.path.join(path,'bin','ifortvars.bat')
|
||||
if os.path.isfile(batch_file):
|
||||
targets[target] = target_compiler(conf, 'intel', arch, version, target, batch_file)
|
||||
|
||||
@ -148,7 +148,7 @@ def gather_ifort_versions(conf, versions):
|
||||
except OSError:
|
||||
continue
|
||||
else:
|
||||
batch_file=os.path.join(path,'bin','iclvars.bat')
|
||||
batch_file=os.path.join(path,'bin','ifortvars.bat')
|
||||
if os.path.isfile(batch_file):
|
||||
targets[target] = target_compiler(conf, 'intel', arch, version, target, batch_file)
|
||||
major = version[0:2]
|
||||
@ -278,7 +278,7 @@ class target_compiler(object):
|
||||
return
|
||||
self.is_done = True
|
||||
try:
|
||||
vs = self.conf.get_msvc_version(self.compiler, self.version, self.bat_target, self.bat)
|
||||
vs = self.conf.get_ifort_version_win32(self.compiler, self.version, self.bat_target, self.bat)
|
||||
except Errors.ConfigurationError:
|
||||
self.is_valid = False
|
||||
return
|
||||
|
Loading…
Reference in New Issue
Block a user