mirror of
https://github.com/ValveSoftware/Proton.git
synced 2025-01-27 22:18:21 +03:00
make: Use GNU Make's job server when building via ninja.
`+` is necessary to mark it as recurisve[0] so that fds are passed as expected. Passing explicit `-j` is dropped because it takes precedence over MAKEFLAGS and disables the job server integration. [0]: https://www.gnu.org/software/make/manual/html_node/POSIX-Jobserver.html
This commit is contained in:
parent
45039fc24e
commit
46304cde3d
@ -60,8 +60,8 @@ $$(OBJ)/.$(1)-configure$(3): $$($(2)_SRC)/meson.build
|
|||||||
|
|
||||||
$$(OBJ)/.$(1)-build$(3):
|
$$(OBJ)/.$(1)-build$(3):
|
||||||
@echo ":: building $(3)bit $(1)..." >&2
|
@echo ":: building $(3)bit $(1)..." >&2
|
||||||
env $$($(2)_ENV$(3)) \
|
+env $$($(2)_ENV$(3)) \
|
||||||
ninja $$(filter -j%,$$(MAKEFLAGS)) -C "$$($(2)_OBJ$(3))" install $(-v?)
|
ninja -C "$$($(2)_OBJ$(3))" install
|
||||||
touch $$@
|
touch $$@
|
||||||
endef
|
endef
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user