diff options
| author | Marco Castelluccio <mcastelluccio@mozilla.com> | 2018-06-20 00:32:33 +0100 |
|---|---|---|
| committer | Marco Castelluccio <mcastelluccio@mozilla.com> | 2018-06-20 00:32:33 +0100 |
| commit | 28670b68c9b8f4d4e364188b599ec72bed5a593f (patch) | |
| tree | d15d4d993b76144aeb334e35846ea8ba849a20a8 | |
| parent | 5230979794db209de492b3f7cc688020b72bc7c6 (diff) | |
| download | rust-28670b68c9b8f4d4e364188b599ec72bed5a593f.tar.gz rust-28670b68c9b8f4d4e364188b599ec72bed5a593f.zip | |
Raise an error if gcov profiling and incremental compilation are both enabled
| -rw-r--r-- | src/librustc/session/config.rs | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/src/librustc/session/config.rs b/src/librustc/session/config.rs index f831b006642..f97e11ef72f 100644 --- a/src/librustc/session/config.rs +++ b/src/librustc/session/config.rs @@ -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); |
