Skip to content

Commit

Permalink
Raise an error if gcov profiling and incremental compilation are both…
Browse files Browse the repository at this point in the history
… enabled
  • Loading branch information
marco-c committed Jun 19, 2018
1 parent 5230979 commit 28670b6
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 28670b6

Please sign in to comment.