Igt-dev Archive on lore.kernel.org
 help / color / mirror / Atom feed
* [igt-dev] [PATCH i-g-t 1/1] meson: Don't build docs when cross-compiling
@ 2018-02-23 11:10 Petri Latvala
  2018-02-23 12:20 ` [igt-dev] ✓ Fi.CI.BAT: success for series starting with [i-g-t,1/1] " Patchwork
                   ` (2 more replies)
  0 siblings, 3 replies; 5+ messages in thread
From: Petri Latvala @ 2018-02-23 11:10 UTC (permalink / raw)
  To: igt-dev

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 <petri.latvala@intel.com>
Cc: Eric Anholt <eric@anholt.net>
---
 meson.build | 5 ++++-
 1 file changed, 4 insertions(+), 1 deletion(-)

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
-- 
2.14.1

_______________________________________________
igt-dev mailing list
igt-dev@lists.freedesktop.org
https://lists.freedesktop.org/mailman/listinfo/igt-dev

^ permalink raw reply related	[flat|nested] 5+ messages in thread

end of thread, other threads:[~2018-03-06 14:58 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2018-02-23 11:10 [igt-dev] [PATCH i-g-t 1/1] meson: Don't build docs when cross-compiling Petri Latvala
2018-02-23 12:20 ` [igt-dev] ✓ Fi.CI.BAT: success for series starting with [i-g-t,1/1] " Patchwork
2018-02-23 14:51 ` [igt-dev] [PATCH i-g-t 1/1] " Eric Anholt
2018-03-06 14:58   ` Daniel Vetter
2018-02-23 15:31 ` [igt-dev] ✓ Fi.CI.IGT: success for series starting with [i-g-t,1/1] " Patchwork

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox