python/build/meson.py: set BOOST_ROOT for Meson 0.54

Commit
https://github.com/mesonbuild/meson/commit/08224dafcba1b694fb624553e7d84deb565aae22
changed Meson to require BOOST_ROOT for cross builds.
This commit is contained in:
Max Kellermann
2020-07-01 16:37:50 +02:00
parent d9f9b3df10
commit ca705e1e37
2 changed files with 8 additions and 1 deletions
+6 -1
View File
@@ -91,7 +91,12 @@ def configure(toolchain, src, build, args=()):
'--cross-file', cross_file,
] + args
subprocess.check_call(configure, env=toolchain.env)
env = toolchain.env.copy()
# Meson 0.54 requires the BOOST_ROOT environment variable
env['BOOST_ROOT'] = toolchain.install_prefix
subprocess.check_call(configure, env=env)
class MesonProject(Project):
def __init__(self, url, md5, installed, configure_args=[],