Skip to content

Commit

Permalink
Ensure the correct tool is used to generate the search path for files
Browse files Browse the repository at this point in the history
  • Loading branch information
langmm committed May 17, 2024
1 parent dcf3a88 commit 117401f
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions yggdrasil/drivers/CompiledModelDriver.py
Original file line number Diff line number Diff line change
Expand Up @@ -2173,7 +2173,7 @@ def tool(self, libtype):
return self.tool('linker')
elif libtype in self.archived_files:
return self.tool('archiver')
elif libtype in self.compiled_files:
elif libtype in self.compiled_files + ['include']:
return self.tool('compiler')
elif libtype == 'configuration':
return self.tool('configurer')
Expand Down Expand Up @@ -3644,7 +3644,7 @@ def _search_brute(self, fname, libtype=None, verbose=False,
+ tools.escape_regex(fname_ext))
else:
fname = fname_base + '*' + fname_ext
search_list = self.basetool.get_search_path(
search_list = self.tool(libtype).get_search_path(
libtype=libtype, cfg=self.cfg, **kwargs)
out = tools.locate_file(fname, directory_list=search_list,
environment_variable=None,
Expand Down Expand Up @@ -3678,7 +3678,8 @@ def _search_brute(self, fname, libtype=None, verbose=False,
if out:
logger.info(f'Located {fname}: {out}')
else:
logger.info(f"Could not locate {fname} (search_list = "
logger.info(f"Could not locate {libtype} "
f"{fname} (search_list = "
f"\n\t" + '\n\t'.join(search_list) + ')')
return out

Expand Down

0 comments on commit 117401f

Please sign in to comment.