From 184ffc89abe30725e8c726a9b34c20680791ae83 Mon Sep 17 00:00:00 2001 From: chrysn Date: Wed, 21 Aug 2024 21:20:46 +0200 Subject: [PATCH] makefiles: Align cargo build command's setup with upcoming cargo-command --- makefiles/cargo-targets.inc.mk | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/makefiles/cargo-targets.inc.mk b/makefiles/cargo-targets.inc.mk index a31a0e5221..b327aca47a 100644 --- a/makefiles/cargo-targets.inc.mk +++ b/makefiles/cargo-targets.inc.mk @@ -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)