From 83395940149bc3829a2cb3e6855659318010c3db Mon Sep 17 00:00:00 2001 From: Leif Middelschulte Date: Tue, 2 Mar 2021 13:57:07 +0100 Subject: exernal_project: Fix default cross compile parameters The variable `{host}` cannot be successfully expanded. Using the `@HOST@` parameter, as suggested by the documentation, works. --- mesonbuild/modules/unstable_external_project.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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, -- cgit v1.1