diff --git a/source/fab/steps/compile_c.py b/source/fab/steps/compile_c.py index 8edeccbd..b261ccb8 100644 --- a/source/fab/steps/compile_c.py +++ b/source/fab/steps/compile_c.py @@ -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 @@ -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)]) diff --git a/source/fab/steps/compile_fortran.py b/source/fab/steps/compile_fortran.py index 7aef849d..87c08227 100644 --- a/source/fab/steps/compile_fortran.py +++ b/source/fab/steps/compile_fortran.py @@ -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):