Skip to content

Commit

Permalink
Ignore profile-generate
Browse files Browse the repository at this point in the history
Signed-off-by: Xuanwo <[email protected]>
  • Loading branch information
Xuanwo committed Dec 30, 2024
1 parent 2681259 commit c76b0ae
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions src/compiler/rust.rs
Original file line number Diff line number Diff line change
Expand Up @@ -163,9 +163,11 @@ pub struct ParsedArguments {
dep_info: Option<PathBuf>,
/// If profile info is being emitted, the path of the profile.
///
/// This could be filled while `-Cprofile-generate` or `-Cprofile-use` been enabled.
/// This could be filled while `-Cprofile-use` been enabled.
///
/// We need to add the profile into our outputs to enable distributed compilation.
/// We don't need to track `profile-generate` since it's users work to make sure
/// the `profdata` been generated from profraw files.
///
/// For more information, see https://doc.rust-lang.org/rustc/profile-guided-optimization.html
profile: Option<PathBuf>,
Expand Down Expand Up @@ -1133,7 +1135,6 @@ fn parse_arguments(arguments: &[OsString], cwd: &Path) -> CompilerArguments<Pars
match (opt.as_ref(), value) {
("extra-filename", Some(value)) => extra_filename = Some(value.to_owned()),
("extra-filename", None) => cannot_cache!("extra-filename"),
("profile-generate", Some(v)) => profile = Some(v.to_string()),
("profile-use", Some(v)) => profile = Some(v.to_string()),
// Incremental compilation makes a mess of sccache's entire world
// view. It produces additional compiler outputs that we don't cache,
Expand Down

0 comments on commit c76b0ae

Please sign in to comment.