diff options
Diffstat (limited to 'mesonbuild/modules/external_project.py')
| -rw-r--r-- | mesonbuild/modules/external_project.py | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/mesonbuild/modules/external_project.py b/mesonbuild/modules/external_project.py index bd6eba494..4247ba0cf 100644 --- a/mesonbuild/modules/external_project.py +++ b/mesonbuild/modules/external_project.py @@ -136,8 +136,9 @@ class ExternalProject(NewExtensionModule): configure_cmd += self._format_options(self.configure_options, d) if self.env.is_cross_build(): - host = '{}-{}-{}'.format(self.host_machine.cpu_family, - self.build_machine.system, + host = '{}-{}-{}'.format(self.host_machine.cpu, + 'pc' if self.host_machine.cpu_family in {"x86", "x86_64"} + else 'unknown', self.host_machine.system) d = [('HOST', None, host)] configure_cmd += self._format_options(self.cross_configure_options, d) |
