From 4fbb4b9c12d1944e5d60bc4f3d0cbd0bf7bed36d Mon Sep 17 00:00:00 2001 From: Thierry Reding Date: Thu, 12 Oct 2017 10:33:37 +0200 Subject: lib: Fix compilation on non-x86 MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit The meson build avoids the failure by excluding the igt_x86.c file from the compilation. autotools being what they are don't support that in an easy way, so just use the preprocessor to avoid the duplicate function definitions. Since igt_x86.c will now be ignored for non-x86 builds, the meson work- around can be removed. Reviewed-by: Ville Syrjälä Signed-off-by: Thierry Reding --- lib/meson.build | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) (limited to 'lib/meson.build') diff --git a/lib/meson.build b/lib/meson.build index b31c68e4..ddf93ec6 100644 --- a/lib/meson.build +++ b/lib/meson.build @@ -64,6 +64,7 @@ lib_sources = [ 'igt_syncobj.c', 'igt_sysfs.c', 'igt_vgem.c', + 'igt_x86.c', 'instdone.c', 'intel_batchbuffer.c', 'intel_chipset.c', @@ -96,10 +97,6 @@ lib_sources = [ 'igt_kmod.c', ] -if ['x86', 'x86_64'].contains(host_machine.cpu_family()) - lib_sources += 'igt_x86.c' -endif - lib_deps = [ cairo, glib, -- cgit v1.2.3