]> xenbits.xensource.com Git - libvirt.git/commitdiff
docs: Fix deprecated use of implicit meson "setup" command
authorTim Small <tim@seoss.co.uk>
Thu, 13 Jul 2023 11:00:03 +0000 (12:00 +0100)
committerMichal Privoznik <mprivozn@redhat.com>
Fri, 14 Jul 2023 13:19:29 +0000 (15:19 +0200)
Use the explicit meson "setup" command instead of the deprecated
implicit invocation. The implied setup usage generates a warning with
meson version 1.0.1:

WARNING: Running the setup command as `meson [options]` instead of
`meson setup [options]` is ambiguous and deprecated.

Additionally the implicit command is likely to be confusing to those
unfamiliar with Meson - the `build` argument in `meson build` resembles
an action rather than an arbitrary path.

Signed-off-by: Tim Small <tim@seoss.co.uk>
Reviewed-by: Michal Privoznik <mprivozn@redhat.com>
docs/compiling.rst

index 2a740ad76e47df78fa1b2787eb4d071f3b84a930..c03238b114443675b49b5dca41cc3e4994a7e17f 100644 (file)
@@ -68,7 +68,7 @@ of the build directory which will be created.
 
 ::
 
-   $ meson build [options]
+   $ meson setup build [options]
 
 To get the complete list of the options run the following command:
 
@@ -83,7 +83,7 @@ normal OS vendor prefixes, use
 
 ::
 
-   $ meson build -Dsystem=true
+   $ meson setup build -Dsystem=true
 
 Explicitly enabling required functionality
 ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
@@ -99,7 +99,7 @@ libvirt project with support for the **qemu** driver use the following options:
 
 ::
 
-   $ meson build -Dsystem=true -Ddriver_qemu=enabled
+   $ meson setup build -Dsystem=true -Ddriver_qemu=enabled
 
 Notes:
 ~~~~~~