From a2664f86bb75e642c432531e2bf30e030fb3e828 Mon Sep 17 00:00:00 2001 From: Petri Latvala Date: Fri, 23 Feb 2018 13:10:58 +0200 Subject: meson: Don't build docs when cross-compiling Building documentation requires executing all test binaries to produce their respective description texts. This can be a very time-consuming process, if viable at all, when the target arch differs from the host. Don't process the doc directory at all when an exe wrapper is setup. This avoids the runtime penalty when the target binaries are executed through qemu, but leaves everything as-is when the target binaries can be directly executed, like when cross-compiling to x86 from x86_64 host. Signed-off-by: Petri Latvala Cc: Eric Anholt Reviewed-by: Eric Anholt --- meson.build | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) (limited to 'meson.build') diff --git a/meson.build b/meson.build index 509ae5de..0d496718 100644 --- a/meson.build +++ b/meson.build @@ -147,4 +147,7 @@ if libdrm_intel.found() endif endif subdir('man') -subdir('docs') +# has_exe_wrapper() is undefined if building natively +if not meson.is_cross_build() or not meson.has_exe_wrapper() + subdir('docs') +endif -- cgit v1.2.3