Skip to content

Commit

Permalink
Auto merge of #51645 - marco-c:error_when_incremental_and_profile, r=…
Browse files Browse the repository at this point in the history
…michaelwoerister

Raise an error if gcov profiling and incremental compilation are both enabled

Fixes #50203.
  • Loading branch information
bors committed Jul 2, 2018
2 parents a96c88e + 28670b6 commit e75e782
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions src/librustc/session/config.rs
Original file line number Diff line number Diff line change
Expand Up @@ -1970,6 +1970,13 @@ pub fn build_session_options_and_crate_config(
);
}

if debugging_opts.profile && incremental.is_some() {
early_error(
error_format,
"can't instrument with gcov profiling when compiling incrementally",
);
}

let mut prints = Vec::<PrintRequest>::new();
if cg.target_cpu.as_ref().map_or(false, |s| s == "help") {
prints.push(PrintRequest::TargetCPUs);
Expand Down

0 comments on commit e75e782

Please sign in to comment.