diff options
| author | Leif Middelschulte <leif.middelschulte@klsmartin.com> | 2021-03-02 13:57:07 +0100 |
|---|---|---|
| committer | Xavier Claessens <xclaesse@gmail.com> | 2021-03-02 08:20:28 -0500 |
| commit | 83395940149bc3829a2cb3e6855659318010c3db (patch) | |
| tree | 83101d84ef882fc2dc7a1026e0d29f962f744e70 | |
| parent | 1ac4358eae27459f0aaab8c704787201b2ad1725 (diff) | |
| download | meson-83395940149bc3829a2cb3e6855659318010c3db.tar.gz | |
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.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/mesonbuild/modules/unstable_external_project.py b/mesonbuild/modules/unstable_external_project.py index 451675ffb..cb1ea8576 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, |
