]> git.ipfire.org Git - thirdparty/knot-resolver.git/commitdiff
doc: better build parallelism
authorVladimír Čunát <vladimir.cunat@nic.cz>
Thu, 3 Apr 2025 12:13:28 +0000 (14:13 +0200)
committerVladimír Čunát <vladimir.cunat@nic.cz>
Mon, 12 May 2025 13:17:02 +0000 (15:17 +0200)
`auto` isn't perfect because of nested parallelism,
but I don't see another simple way here,
and I hope the potential slight overload will be OK for docs.

doc/meson.build

index ad6a0f9a947012414380d988043a3ec2128481c9..c03bad3ae98336cbf0ede05f7a2c811d732d14ce 100644 (file)
@@ -72,14 +72,14 @@ if get_option('doc') == 'enabled'
 endif
 
 
-make_doc = find_program('../scripts/meson/make-doc.sh')
+make_doc = [find_program('../scripts/meson/make-doc.sh'), '-j', 'auto']
 run_target(
   'doc',
-  command: make_doc
+  command: make_doc,
 )
 
 
 run_target(
   'doc-strict',
-  command: [make_doc, '-W']
+  command: make_doc + ['-W']
 )