Kobzol/cargo-pgo

Add a CLI flag to swap between setting build/target rustflags

Opened this issue · 0 comments

cargo-pgo currently sets PGO rustflags through target.*.rustflags from Rust 1.63+ (since #57, see #56 for the reasoning). This means that if you have e.g. build.rustflags in your Cargo config file, it will be overridden by the flags set by cargo-pgo.

It might be useful to some users to give them the option to decide whether they want to use the target or the build rustflags. The latter might be useful if the user already has some build.rustflags value set and they do not want to override them.

This was suggested here.