Skip to content

Commit

Permalink
Fix --debug flag.
Browse files Browse the repository at this point in the history
  • Loading branch information
Micket committed Sep 27, 2024
1 parent 23d8254 commit 17909f2
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions easybuild/easyblocks/generic/mesonninja.py
Original file line number Diff line number Diff line change
Expand Up @@ -121,15 +121,15 @@ def configure_step(self, cmd_prefix=''):
build_dir = self.cfg.get('build_dir') or self.start_dir

cmd = ("%(preconfigopts)s %(configure_cmd)s --prefix %(installdir)s --buildtype %(buildtype)s %(configopts)s "
"--optimization %(optimization)s --debug %(debug)s %(source_dir)s") % {
"--optimization %(optimization)s %(debug)s %(source_dir)s") % {
'configopts': self.cfg['configopts'],
'configure_cmd': configure_cmd,
'installdir': self.installdir,
'preconfigopts': self.cfg['preconfigopts'],
'source_dir': build_dir,
'buildtype': self.build_type,
'optimization': self.optimization,
'debug': self.toolchain.options.get('debug', False),
'debug': '--debug' if self.toolchain.options.get('debug', False) else '',
}
res = run_shell_cmd(cmd)
return res.output
Expand Down

0 comments on commit 17909f2

Please sign in to comment.