Add the script path to OneApi Fortran compilers

This commit is contained in:
Waf Project 2024-03-18 23:34:44 +01:00
parent cd0c77725e
commit 7a15d4c74c
1 changed files with 10 additions and 2 deletions

View File

@ -137,9 +137,13 @@ def gather_ifort_versions(conf, versions):
except OSError:
pass
else:
batch_file=os.path.join(path,'bin','ifortvars.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)
else:
batch_file = os.path.join(path, 'env', 'vars.bat')
if os.path.isfile(batch_file):
targets[target] = target_compiler(conf, 'oneapi', arch, version, target, batch_file)
for target,arch in all_ifort_platforms:
try:
@ -308,7 +312,11 @@ def get_ifort_versions(self, eval_and_save=True):
return dct
def _get_prog_names(self, compiler):
if compiler=='intel':
if compiler == 'oneapi':
compiler_name = 'ifx'
linker_name = 'XILINK'
lib_name = 'XILIB'
elif compiler == 'intel':
compiler_name = 'ifort'
linker_name = 'XILINK'
lib_name = 'XILIB'