Skip to content

Commit 48082e5

Browse files
authored
Rename self.exe attribute in compile task(#149)
1 parent f97f888 commit 48082e5

File tree

2 files changed

+2
-3
lines changed

2 files changed

+2
-3
lines changed

source/fab/steps/compile_c.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -56,7 +56,7 @@ def __init__(self, compiler: str = None, common_flags: List[str] = None, path_fl
5656
"""
5757
super().__init__(name=name)
5858

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

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

108-
command = self.exe.split() # type: ignore
108+
command = self.compiler.split() # type: ignore
109109
command.extend(self.flags.flags_for_path(path=analysed_file.fpath, config=self._config))
110110
command.append(str(analysed_file.fpath))
111111
command.extend(['-o', str(output_fpath)])

source/fab/steps/compile_fortran.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -273,7 +273,6 @@ def _get_obj_combo_hash(self, analysed_file, flags):
273273
])
274274
except TypeError:
275275
raise ValueError("could not generate combo hash for object file")
276-
277276
return obj_combo_hash
278277

279278
def _get_mod_combo_hash(self, analysed_file):

0 commit comments

Comments
 (0)