Skip to content

Commit

Permalink
Stop adding - in front of option flags
Browse files Browse the repository at this point in the history
  • Loading branch information
Micket committed Nov 8, 2024
1 parent e6b9b07 commit 24cfdc6
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions easybuild/tools/toolchain/toolchain.py
Original file line number Diff line number Diff line change
Expand Up @@ -1114,9 +1114,9 @@ def _setenv_variables(self, donotset=None, verbose=True):
def get_flag(self, name):
"""Get compiler flag(s) for a certain option."""
if isinstance(self.options.option(name), list):
return " ".join("-%s" % x for x in list(self.options.option(name)))
return " ".join(list(self.options.option(name)))
else:
return "-%s" % self.options.option(name)
return self.options.option(name)

def toolchain_family(self):
"""Return toolchain family for this toolchain."""
Expand Down

0 comments on commit 24cfdc6

Please sign in to comment.