From 6fb226d5a2d1300f63af7e3c670e24fc85047571 Mon Sep 17 00:00:00 2001 From: Kaspar Schleiser Date: Thu, 26 Jan 2023 20:52:29 +0100 Subject: [PATCH] make: pass make jobserver to cargo --- makefiles/cargo-targets.inc.mk | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/makefiles/cargo-targets.inc.mk b/makefiles/cargo-targets.inc.mk index 855c522314c8..118cb83f7aaf 100644 --- a/makefiles/cargo-targets.inc.mk +++ b/makefiles/cargo-targets.inc.mk @@ -59,7 +59,8 @@ $(CARGO_LIB): $(RIOTBUILD_CONFIG_HEADER_C) $(BUILDDEPS) $(CARGO_COMPILE_COMMANDS ($(COLOR_ECHO) \ '$(COLOR_RED)Error: No Rust libraries are installed for the board'"'"'s CPU.$(COLOR_RESET) Run\n $(COLOR_GREEN)$$$(COLOR_RESET) rustup target add $(RUST_TARGET) $(patsubst %,--toolchain %,$(CARGO_CHANNEL))\nor set `CARGO_OPTIONS=-Zbuild-std=core`.'; \ exit 1) - $(Q)CC= CFLAGS= CPPFLAGS= CXXFLAGS= \ + $(Q)# finally call out to cargo. mind the "+" to pass down make's jobserver. + $(Q)+ CC= CFLAGS= CPPFLAGS= CXXFLAGS= \ RIOT_COMPILE_COMMANDS_JSON="$(CARGO_COMPILE_COMMANDS)" \ RIOT_USEMODULE="$(USEMODULE)" \ cargo $(patsubst +,,+${CARGO_CHANNEL}) \