meson.eclass: define host_machine in the native machine file
authorMike Gilbert <floppym@gentoo.org>
Sun, 24 May 2020 03:15:41 +0000 (23:15 -0400)
committerMike Gilbert <floppym@gentoo.org>
Sun, 24 May 2020 03:15:41 +0000 (23:15 -0400)
Should resolve a problem with inline assembly in media-libs/mesa for
multilib builds.

Signed-off-by: Mike Gilbert <floppym@gentoo.org>
eclass/meson.eclass

index e79faa1beea3f84aac00f1f232c7d9efc2d2d62b..617e5cb23e513d5bcc7e3d2734c847f53525a328 100644 (file)
@@ -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}"