From 3a4388e51dee5e7e58f1e5ad4e60fb73b4aacf08 Mon Sep 17 00:00:00 2001 From: John Ericson Date: Fri, 2 Aug 2019 14:29:40 -0400 Subject: Fix legacy env var support with cross Fix #3969 --- mesonbuild/backend/backends.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'mesonbuild/backend/backends.py') diff --git a/mesonbuild/backend/backends.py b/mesonbuild/backend/backends.py index e9ab9f4..ab922ba 100644 --- a/mesonbuild/backend/backends.py +++ b/mesonbuild/backend/backends.py @@ -1044,7 +1044,7 @@ class Backend: subprocess.check_call(cmd, env=child_env) def create_install_data(self): - strip_bin = self.environment.binaries.host.lookup_entry('strip') + strip_bin = self.environment.lookup_binary_entry(MachineChoice.HOST, 'strip') if strip_bin is None: if self.environment.is_cross_build(): mlog.warning('Cross file does not specify strip binary, result will not be stripped.') -- cgit v1.1