Skip to content

Commit

Permalink
Merge pull request #3235 from WilleBell/20240228171510_new_pr_ocaml
Browse files Browse the repository at this point in the history
fix OCaml easyblock for recent versions
  • Loading branch information
boegel authored Mar 4, 2024
2 parents a2864e7 + 377d732 commit 1773f7b
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion easybuild/easyblocks/o/ocaml.py
Original file line number Diff line number Diff line change
Expand Up @@ -86,7 +86,8 @@ def __init__(self, *args, **kwargs):
def configure_step(self):
"""Custom configuration procedure for OCaml."""
self.cfg['prefix_opt'] = '-prefix '
self.cfg.update('configopts', '-cc "%s %s"' % (os.environ['CC'], os.environ['CFLAGS']))
if LooseVersion(self.version) < LooseVersion("4.12"):
self.cfg.update('configopts', '-cc "%s %s"' % (os.environ['CC'], os.environ['CFLAGS']))

if 'world.opt' not in self.cfg['buildopts']:
self.cfg.update('buildopts', 'world.opt')
Expand Down

0 comments on commit 1773f7b

Please sign in to comment.