Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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