Skip to content

Commit

Permalink
removing unneeded change
Browse files Browse the repository at this point in the history
  • Loading branch information
branfosj authored Dec 20, 2024
1 parent 36fc898 commit f875f97
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions easybuild/easyblocks/generic/configuremake.py
Original file line number Diff line number Diff line change
Expand Up @@ -338,8 +338,8 @@ def configure_step(self, cmd_prefix=''):
raise EasyBuildError('Invalid value for `unrecognized_configure_options`: %s. Must be one of: ',
action, ', '.join(valid_actions))
if action != IGNORE:
unrecognized_options_str = "^configure: WARNING: unrecognized options:"
unrecognized_options = re.findall(rf"{unrecognized_options_str}.*", res.output, flags=re.I | re.M)
unrecognized_options_str = 'configure: WARNING: unrecognized options:'
unrecognized_options = re.findall(rf"^{unrecognized_options_str}.*", res.output, flags=re.I | re.M)
# Keep only unique options (remove the warning string and strip whitespace)
unrecognized_options = nub(x.split(unrecognized_options_str)[-1].strip() for x in unrecognized_options)
if unrecognized_options:
Expand Down

0 comments on commit f875f97

Please sign in to comment.