Skip to content

Commit

Permalink
Don't overwrite COMPILER_MODULE_NAME
Browse files Browse the repository at this point in the history
  • Loading branch information
Flamefire committed Aug 12, 2021
1 parent 14b44e9 commit 7050b05
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion easybuild/tools/toolchain/compiler.py
Original file line number Diff line number Diff line change
Expand Up @@ -444,7 +444,8 @@ def _set_optimal_architecture(self, default_optarch=None):
# first try module names, then the family in optarch
current_compiler_names = self.COMPILER_MODULE_NAME or []
if self.COMPILER_FAMILY:
current_compiler_names.append(self.COMPILER_FAMILY)
# Create new list to NOT modify self.COMPILER_MODULE_NAME
current_compiler_names = current_compiler_names + [self.COMPILER_FAMILY]
compiler_optarch = None
for current_compiler in current_compiler_names:
if current_compiler in optarch:
Expand Down

0 comments on commit 7050b05

Please sign in to comment.