Skip to content

Commit be87ddd

Browse files
committed
Stop adding - in front of option flags
1 parent 46fd6d5 commit be87ddd

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

easybuild/tools/toolchain/toolchain.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1173,9 +1173,9 @@ def _setenv_variables(self, donotset=None, verbose=True):
11731173
def get_flag(self, name):
11741174
"""Get compiler flag(s) for a certain option."""
11751175
if isinstance(self.options.option(name), list):
1176-
return " ".join("-%s" % x for x in list(self.options.option(name)))
1176+
return " ".join(list(self.options.option(name)))
11771177
else:
1178-
return "-%s" % self.options.option(name)
1178+
return self.options.option(name)
11791179

11801180
def toolchain_family(self):
11811181
"""Return toolchain family for this toolchain."""

0 commit comments

Comments
 (0)