commit:     c21b75bd0b6bf77e2b51c51222b4281729bb1c01
Author:     Mike Gilbert <floppym <AT> gentoo <DOT> org>
AuthorDate: Sun May 24 03:15:41 2020 +0000
Commit:     Mike Gilbert <floppym <AT> gentoo <DOT> org>
CommitDate: Sun May 24 03:15:41 2020 +0000
URL:        https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=c21b75bd

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 <AT> gentoo.org>

 eclass/meson.eclass | 6 ++++++
 1 file changed, 6 insertions(+)

diff --git a/eclass/meson.eclass b/eclass/meson.eclass
index e79faa1beea..617e5cb23e5 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}"

Reply via email to