Skip to content

Commit

Permalink
Copy list of library settings from project-config
Browse files Browse the repository at this point in the history
  • Loading branch information
Flamefire committed Jul 14, 2021
1 parent 13a07d0 commit e5d6a20
Showing 1 changed file with 8 additions and 1 deletion.
9 changes: 8 additions & 1 deletion easybuild/easyblocks/b/boost.py
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,7 @@
from easybuild.framework.easyconfig import CUSTOM
from easybuild.tools.build_log import EasyBuildError
from easybuild.tools.config import ERROR
from easybuild.tools.filetools import apply_regex_substitutions, copy, mkdir, symlink, which, write_file
from easybuild.tools.filetools import apply_regex_substitutions, copy, read_file, symlink, which, write_file
from easybuild.tools.modules import get_software_root, get_software_version
from easybuild.tools.run import run_cmd
from easybuild.tools.systemtools import AARCH64, POWER, UNKNOWN
Expand Down Expand Up @@ -240,6 +240,13 @@ def build_step(self):
else:
self.paracmd = ''

# Add list of default library settings from project-config (created by configure step)
# Required because any --with-* or --without-* overwrites this entirely
project_config = read_file('project-config.jam')
libraries = re.search(r'libraries = (.*) ;', project_config)
if libraries:
self.bjamoptions += libraries.group(0)

if self.cfg['only_python_bindings']:
# magic incantation to only install Boost Python bindings is... --with-python
# see http://boostorg.github.io/python/doc/html/building/installing_boost_python_on_your_.html
Expand Down

0 comments on commit e5d6a20

Please sign in to comment.