mirror of
https://github.com/Motorhead1991/qemu.git
synced 2025-07-28 04:43:54 -06:00
build: rebuild build.ninja using "meson setup --reconfigure"
Do not use the rule in build.ninja, because the path to meson is hardcoded in build.ninja and this breaks if meson moves (for example if the distro meson suddenly becomes too old after an update). Reported-by: Peter Maydell <peter.maydell@linaro.org> Tested-by: Peter Maydell <peter.maydell@linaro.org> Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
This commit is contained in:
parent
c673f3d0fe
commit
b0fcc6fc7f
1 changed files with 3 additions and 3 deletions
6
Makefile
6
Makefile
|
@ -115,15 +115,15 @@ Makefile.ninja: build.ninja
|
||||||
$(NINJA) -t query build.ninja | sed -n '1,/^ input:/d; /^ outputs:/q; s/$$/ \\/p'; \
|
$(NINJA) -t query build.ninja | sed -n '1,/^ input:/d; /^ outputs:/q; s/$$/ \\/p'; \
|
||||||
} > $@.tmp && mv $@.tmp $@
|
} > $@.tmp && mv $@.tmp $@
|
||||||
-include Makefile.ninja
|
-include Makefile.ninja
|
||||||
|
endif
|
||||||
|
|
||||||
|
ifneq ($(MESON),)
|
||||||
# A separate rule is needed for Makefile dependencies to avoid -n
|
# A separate rule is needed for Makefile dependencies to avoid -n
|
||||||
build.ninja: build.ninja.stamp
|
build.ninja: build.ninja.stamp
|
||||||
$(build-files):
|
$(build-files):
|
||||||
build.ninja.stamp: meson.stamp $(build-files)
|
build.ninja.stamp: meson.stamp $(build-files)
|
||||||
$(NINJA) $(if $V,-v,) build.ninja && touch $@
|
$(MESON) setup --reconfigure $(SRC_PATH) && touch $@
|
||||||
endif
|
|
||||||
|
|
||||||
ifneq ($(MESON),)
|
|
||||||
Makefile.mtest: build.ninja scripts/mtest2make.py
|
Makefile.mtest: build.ninja scripts/mtest2make.py
|
||||||
$(MESON) introspect --targets --tests --benchmarks | $(PYTHON) scripts/mtest2make.py > $@
|
$(MESON) introspect --targets --tests --benchmarks | $(PYTHON) scripts/mtest2make.py > $@
|
||||||
-include Makefile.mtest
|
-include Makefile.mtest
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue