From 2a74ae550842cfe216bff28725e1a24db3b56792 Mon Sep 17 00:00:00 2001 From: Eric Anholt Date: Wed, 27 Sep 2017 11:17:15 -0700 Subject: meson: Fix build of igt_x86-using tests on non-x86 platforms. Just stub out the features return value, and return an empty string. Signed-off-by: Eric Anholt Reviewed-by: Petri Latvala --- lib/meson.build | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) (limited to 'lib/meson.build') diff --git a/lib/meson.build b/lib/meson.build index 54ff4f9b..42919eef 100644 --- a/lib/meson.build +++ b/lib/meson.build @@ -55,7 +55,6 @@ lib_sources = [ 'igt_rand.c', 'igt_stats.c', 'igt_sysfs.c', - 'igt_x86.c', 'igt_vgem.c', 'instdone.c', 'intel_batchbuffer.c', @@ -89,6 +88,10 @@ 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