aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorLeif Middelschulte <leif.middelschulte@klsmartin.com>2021-03-02 13:57:07 +0100
committerXavier Claessens <xclaesse@gmail.com>2021-03-02 08:20:28 -0500
commit83395940149bc3829a2cb3e6855659318010c3db (patch)
tree83101d84ef882fc2dc7a1026e0d29f962f744e70
parent1ac4358eae27459f0aaab8c704787201b2ad1725 (diff)
downloadmeson-83395940149bc3829a2cb3e6855659318010c3db.zip
meson-83395940149bc3829a2cb3e6855659318010c3db.tar.gz
meson-83395940149bc3829a2cb3e6855659318010c3db.tar.bz2
exernal_project: Fix default cross compile parameters
The variable `{host}` cannot be successfully expanded. Using the `@HOST@` parameter, as suggested by the documentation, works.
-rw-r--r--mesonbuild/modules/unstable_external_project.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/mesonbuild/modules/unstable_external_project.py b/mesonbuild/modules/unstable_external_project.py
index 451675f..cb1ea85 100644
--- a/mesonbuild/modules/unstable_external_project.py
+++ b/mesonbuild/modules/unstable_external_project.py
@@ -261,7 +261,7 @@ class ExternalProjectModule(ExtensionModule):
raise InterpreterException('add_project takes exactly one positional argument')
configure_command = args[0]
configure_options = kwargs.get('configure_options', [])
- cross_configure_options = kwargs.get('cross_configure_options', ['--host={host}'])
+ cross_configure_options = kwargs.get('cross_configure_options', ['--host=@HOST@'])
verbose = kwargs.get('verbose', False)
env = self.interpreter.unpack_env_kwarg(kwargs)
project = ExternalProject(self.interpreter,