diff mbox series

build: Replace meson introspection argument with a builddir

Message ID 20250204-jag-fix_meson-v1-1-ecb6bdb1db51@kernel.org (mailing list archive)
State New
Headers show
Series build: Replace meson introspection argument with a builddir | expand

Commit Message

Joel Granados Feb. 4, 2025, 8:10 p.m. UTC
Replace the meson introspect argument with the build directory instead
of the meson.build file. The introspect command accepts an optional
build directory not a file.

Signed-off-by: Joel Granados <joel.granados@kernel.org>
---
For some reason this causes an error when I "remote" compile qemu.
In any case, the introspect only accepts directories, so having it point
the to the meson.build file is a mistake.

Comments are greatly appreciated
---
 Makefile | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)


---
base-commit: d922088eb4ba6bc31a99f17b32cf75e59dd306cd
change-id: 20250204-jag-fix_meson-43db4d290315

Best regards,
diff mbox series

Patch

diff --git a/Makefile b/Makefile
index b65b0bd41a..da88d9bb31 100644
--- a/Makefile
+++ b/Makefile
@@ -129,7 +129,7 @@  Makefile.mtest: build.ninja scripts/mtest2make.py
 .PHONY: update-buildoptions
 all update-buildoptions: $(SRC_PATH)/scripts/meson-buildoptions.sh
 $(SRC_PATH)/scripts/meson-buildoptions.sh: $(SRC_PATH)/meson_options.txt
-	$(MESON) introspect --buildoptions $(SRC_PATH)/meson.build | $(PYTHON) \
+	$(MESON) introspect --buildoptions $(BUILD_DIR) | $(PYTHON) \
 	  scripts/meson-buildoptions.py > $@.tmp && mv $@.tmp $@
 endif