2
0
mirror of https://gitlab.com/ita1024/waf.git synced 2024-11-22 01:46:15 +01:00

Add the script path to OneApi Fortran compilers

This commit is contained in:
Waf Project 2024-03-18 23:34:44 +01:00
parent 6e675dfc30
commit 707b362685

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'