mirror of
https://github.com/RIOT-OS/RIOT.git
synced 2024-12-28 23:49:47 +01:00
makefiles: Align cargo-info output with what happens in the build system
This simplifies the explanation of what might need adjustments depending on which cargo command is invoked.
This commit is contained in:
parent
a5c7705e1f
commit
4beff4e9d4
@ -250,9 +250,10 @@ info-rust:
|
||||
cargo version
|
||||
c2rust --version
|
||||
@echo "To use this setup of Rust in an IDE, add these command line arguments to the \`cargo check\` or \`rust-analyzer\`:"
|
||||
@echo " --target $(RUST_TARGET) --profile $(CARGO_PROFILE) $(CARGO_OPTIONS)"
|
||||
@echo " --profile $(CARGO_PROFILE) $(CARGO_OPTIONS)"
|
||||
@echo "and export these environment variables:"
|
||||
@echo " CARGO_BUILD_TARGET=\"$(RUST_TARGET)\""
|
||||
@echo " RIOT_COMPILE_COMMANDS_JSON=\"$(CARGO_COMPILE_COMMANDS)\""
|
||||
@echo " RIOTBUILD_CONFIG_HEADER_C=\"$(RIOTBUILD_CONFIG_HEADER_C)\""
|
||||
@echo "You can also call cargo related commands with \`make cargo-command CARGO_COMMAND=\"cargo check\"\`."
|
||||
@echo "Beware that the way the profile and other flags are passed in is not consistent across cargo commands, so adding \`--profile $(CARGO_PROFILE)\` or other flags from above as part of CARGO_COMMAND may be necessary."
|
||||
@echo "Beware that the way command line arguments are passed in is not consistent across cargo commands, so adding \`--profile $(CARGO_PROFILE)\` or other flags from above as part of CARGO_COMMAND may be necessary."
|
||||
|
Loading…
Reference in New Issue
Block a user