Skip to content

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

@Kobzol

Description

@Kobzol

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions