Skip to content

Commit

Permalink
Update ROOT easyblock to support sysroot
Browse files Browse the repository at this point in the history
  • Loading branch information
ocaisa authored Oct 2, 2024
1 parent 7d372f8 commit c3aebe1
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions easybuild/easyblocks/r/root.py
Original file line number Diff line number Diff line change
Expand Up @@ -34,6 +34,7 @@
from easybuild.framework.easyconfig import CUSTOM
from easybuild.easyblocks.generic.cmakemake import CMakeMake
from easybuild.tools.build_log import EasyBuildError
from easybuild.tools.config import build_option
from easybuild.tools.environment import setvar
from easybuild.tools.filetools import find_glob_pattern
from easybuild.tools.modules import get_software_root, get_software_version
Expand Down Expand Up @@ -104,6 +105,10 @@ def configure_step(self):
if get_software_root('X11'):
self.cfg.update('configopts', '-Dx11=ON')

sysroot = build_option('sysroot')
if sysroot:
self.cfg.update('configopts', '-DDEFAULT_SYSROOT=%s' % sysroot)

CMakeMake.configure_step(self)
else:
if self.cfg['arch'] is None:
Expand Down

0 comments on commit c3aebe1

Please sign in to comment.