Description
When building with more verbose logs the following will always be shown:
NOTE: cargo build --verbose --manifest-path /home... <snip>
warning: profiles in config files require `-Z config-profile` command-line option
The reason for this message is that specifying profile.*
in a .cargo/config
file requires the unstable config-profile
flag: https://doc.rust-lang.org/cargo/reference/unstable.html#config-profiles
The result of this is that the debug = true
option is not actually being applied, so the binary is not being compiled with full debug information. In the case of Yocto, that's not what we want because we want to build with full debug and then allow Yocto to strip the information off into separate debug files.
I don't immediately see a good way to fix this. Perhaps we could pass the debug level in as a flag using the RUSTFLAGS
environment variable, i.e. something like export RUSTFLAGS='-C debuginfo=2'
( debuginfo doc ). But that would definitely need proving out.