1
0
mirror of https://github.com/RIOT-OS/RIOT.git synced 2024-12-29 04:50:03 +01:00

makefiles: Align cargo build command's setup with upcoming cargo-command

This commit is contained in:
chrysn 2024-08-21 21:20:46 +02:00
parent 8d30b00dd1
commit 184ffc89ab

View File

@ -62,9 +62,9 @@ $(CARGO_LIB): cargo-preflight $(RIOTBUILD_CONFIG_HEADER_C) $(BUILDDEPS) $(CARGO_
@# mind the "+" to pass down make's jobserver.
$(Q)+ CC= CFLAGS= CPPFLAGS= CXXFLAGS= \
RIOT_COMPILE_COMMANDS_JSON="$(CARGO_COMPILE_COMMANDS)" \
CARGO_BUILD_TARGET="$(RUST_TARGET)" \
cargo \
build \
--target $(RUST_TARGET) \
--profile $(CARGO_PROFILE) \
$(CARGO_OPTIONS)