Skip to content

Commit

Permalink
Error out on unknown configure args
Browse files Browse the repository at this point in the history
  • Loading branch information
Flamefire committed Oct 27, 2023
1 parent bf240f3 commit 5c72353
Showing 1 changed file with 2 additions and 6 deletions.
8 changes: 2 additions & 6 deletions easybuild/easyblocks/generic/configuremake.py
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,7 @@
from easybuild.easyblocks import VERSION as EASYBLOCKS_VERSION
from easybuild.framework.easyblock import EasyBlock
from easybuild.framework.easyconfig import CUSTOM
from easybuild.tools.build_log import print_warning, EasyBuildError
from easybuild.tools.build_log import print_warning
from easybuild.tools.config import source_paths, build_option
from easybuild.tools.filetools import CHECKSUM_TYPE_SHA256, adjust_permissions, compute_checksum, download_file
from easybuild.tools.filetools import read_file, remove_file
Expand Down Expand Up @@ -324,11 +324,7 @@ def configure_step(self, cmd_prefix=''):
)

(out, _) = run_cmd(cmd, log_all=True, simple=False)
try:
check_log_for_errors(out, ['configure: WARNING: unrecognized options:'])
except EasyBuildError as err:
self.log.deprecated("Unknown arguments for configure used: %s" % err, '5.0')
print_warning("Unknown arguments for configure detected: %s" % err)
check_log_for_errors(out, ['configure: WARNING: unrecognized options:'])

return out

Expand Down

0 comments on commit 5c72353

Please sign in to comment.