Skip to content

Commit

Permalink
Rename self.exe attribute in compile task(#149)
Browse files Browse the repository at this point in the history
  • Loading branch information
bblay authored Oct 24, 2022
1 parent f97f888 commit 48082e5
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 3 deletions.
4 changes: 2 additions & 2 deletions source/fab/steps/compile_c.py
Original file line number Diff line number Diff line change
Expand Up @@ -56,7 +56,7 @@ def __init__(self, compiler: str = None, common_flags: List[str] = None, path_fl
"""
super().__init__(name=name)

self.exe = compiler or os.getenv('CC', 'gcc -c')
self.compiler = compiler or os.getenv('CC', 'gcc -c')
self.flags = FlagsConfig(common_flags=common_flags, path_flags=path_flags)
self.source_getter = source or DEFAULT_SOURCE_GETTER

Expand Down Expand Up @@ -105,7 +105,7 @@ def _compile_file(self, analysed_file: AnalysedFile):
with Timer() as timer:
output_fpath.parent.mkdir(parents=True, exist_ok=True)

command = self.exe.split() # type: ignore
command = self.compiler.split() # type: ignore
command.extend(self.flags.flags_for_path(path=analysed_file.fpath, config=self._config))
command.append(str(analysed_file.fpath))
command.extend(['-o', str(output_fpath)])
Expand Down
1 change: 0 additions & 1 deletion source/fab/steps/compile_fortran.py
Original file line number Diff line number Diff line change
Expand Up @@ -273,7 +273,6 @@ def _get_obj_combo_hash(self, analysed_file, flags):
])
except TypeError:
raise ValueError("could not generate combo hash for object file")

return obj_combo_hash

def _get_mod_combo_hash(self, analysed_file):
Expand Down

0 comments on commit 48082e5

Please sign in to comment.