mirror of
https://github.com/neovim/neovim.git
synced 2025-09-06 19:38:20 +00:00
build: Inherit -n and -jN flags if Ninja #12219
This commit is contained in:
8
Makefile
8
Makefile
@@ -58,11 +58,15 @@ endif
|
|||||||
|
|
||||||
BUILD_CMD = $(BUILD_TOOL)
|
BUILD_CMD = $(BUILD_TOOL)
|
||||||
|
|
||||||
ifneq ($(VERBOSE),)
|
# Only need to handle Ninja here. Make will inherit the VERBOSE variable, and the -j and -n flags.
|
||||||
# Only need to handle Ninja here. Make will inherit the VERBOSE variable.
|
|
||||||
ifeq ($(BUILD_TYPE),Ninja)
|
ifeq ($(BUILD_TYPE),Ninja)
|
||||||
|
ifneq ($(VERBOSE),)
|
||||||
BUILD_CMD += -v
|
BUILD_CMD += -v
|
||||||
endif
|
endif
|
||||||
|
BUILD_CMD += $(shell printf '%s' '$(MAKEFLAGS)' | grep -o -- '-j[0-9]\+')
|
||||||
|
ifeq (n,$(findstring n,$(firstword -$(MAKEFLAGS))))
|
||||||
|
BUILD_CMD += -n
|
||||||
|
endif
|
||||||
endif
|
endif
|
||||||
|
|
||||||
DEPS_CMAKE_FLAGS ?=
|
DEPS_CMAKE_FLAGS ?=
|
||||||
|
Reference in New Issue
Block a user