summaryrefslogtreecommitdiff
path: root/eclass
diff options
context:
space:
mode:
authorMike Gilbert <floppym@gentoo.org>2020-05-23 23:15:41 -0400
committerMike Gilbert <floppym@gentoo.org>2020-05-23 23:15:41 -0400
commitc21b75bd0b6bf77e2b51c51222b4281729bb1c01 (patch)
treefe974904da1496745427b77a3f9f1be02ea35934 /eclass
parentnet-p2p/transmission: disable cmake warning for subprojects (diff)
downloadgentoo-c21b75bd0b6bf77e2b51c51222b4281729bb1c01.tar.gz
gentoo-c21b75bd0b6bf77e2b51c51222b4281729bb1c01.tar.bz2
gentoo-c21b75bd0b6bf77e2b51c51222b4281729bb1c01.zip
meson.eclass: define host_machine in the native machine file
Should resolve a problem with inline assembly in media-libs/mesa for multilib builds. Signed-off-by: Mike Gilbert <floppym@gentoo.org>
Diffstat (limited to 'eclass')
-rw-r--r--eclass/meson.eclass6
1 files changed, 6 insertions, 0 deletions
diff --git a/eclass/meson.eclass b/eclass/meson.eclass
index e79faa1beea3..617e5cb23e51 100644
--- a/eclass/meson.eclass
+++ b/eclass/meson.eclass
@@ -253,6 +253,12 @@ _meson_create_native_file() {
cpu_family = '${cpu_family}'
cpu = '${cpu}'
endian = '$(tc-endian "${CBUILD}")'
+
+ [host_machine]
+ system = '${system}'
+ cpu_family = '${cpu_family}'
+ cpu = '${cpu}'
+ endian = '$(tc-endian "${CBUILD}")'
EOF
echo "${fn}"