[PATCH i-g-t 2/2] meson.sh: add setup option for meson

Kamil Konieczny kamil.konieczny at linux.intel.com
Thu Dec 14 16:15:11 UTC 2023


New meson version issue warning when running ./meson.sh script:

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

Add setup option as a first one for a new build.

Cc: Mauro Carvalho Chehab <mchehab at kernel.org>
Cc: Mauro Carvalho Chehab <mauro.chehab at linux.intel.com>
Cc: Petri Latvala <adrinael at adrinael.net>
Signed-off-by: Kamil Konieczny <kamil.konieczny at linux.intel.com>
Reviewed-by: Mauro Carvalho Chehab <mchehab at kernel.org>
---
 meson.sh | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/meson.sh b/meson.sh
index e934d297b..1563a85b1 100755
--- a/meson.sh
+++ b/meson.sh
@@ -37,7 +37,7 @@ default: all
 
 build/build.ninja:
 	\$(Q)mkdir -p build
-	\$(Q)meson build
+	\$(Q)meson setup build
 
 all: build/build.ninja
 	\$(Q)ninja -C build \$(quiet_build)
-- 
2.42.0



More information about the igt-dev mailing list