summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorIgor V. Kovalenko <igor.v.kovalenko@gmail.com>2020-11-30 13:31:19 +0300
committerArun Raghavan <arun@asymptotic.io>2021-01-12 21:02:49 -0500
commit374d937752ad9b47b3e5e2ced36997752cc162e7 (patch)
tree72f0ae63c87127c39d4330dcbc8da1b7e85a3510
parent80474384f522a790b3a69c998ceb5a08072005c4 (diff)
downloadpulseaudio-374d937752ad9b47b3e5e2ced36997752cc162e7.tar.gz
build-sys: meson: use target_machine.cpu_family() for CANONICAL_HOST
target_machine provides information about the machine on which the compiled binary's output will run. cpu_family() returns CPU family name (such as x86_64, not more specific amd64) Part-of: <https://gitlab.freedesktop.org/pulseaudio/pulseaudio/-/merge_requests/426>
-rw-r--r--meson.build2
1 files changed, 1 insertions, 1 deletions
diff --git a/meson.build b/meson.build
index 658eeee57..d0962fb30 100644
--- a/meson.build
+++ b/meson.build
@@ -125,7 +125,7 @@ cdata = configuration_data()
cdata.set_quoted('PACKAGE', 'pulseaudio')
cdata.set_quoted('PACKAGE_NAME', 'pulseaudio')
cdata.set_quoted('PACKAGE_VERSION', pa_version_str)
-cdata.set_quoted('CANONICAL_HOST', host_machine.cpu())
+cdata.set_quoted('CANONICAL_HOST', target_machine.cpu_family())
cdata.set('PA_MAJOR', pa_version_major)
cdata.set('PA_MINOR', pa_version_minor)
cdata.set('PA_API_VERSION', pa_api_version)