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}) \