Add rustc option to output LLVM optimization remarks to YAML files

This commit is contained in:
Jakub Beránek
2023-06-25 23:39:02 +02:00
parent 8882507bc7
commit 62728c7aaf
11 changed files with 180 additions and 13 deletions

View File

@@ -2583,6 +2583,10 @@ pub fn build_session_options(
handler.early_warn("-C remark requires \"-C debuginfo=n\" to show source locations");
}
if cg.remark.is_empty() && unstable_opts.remark_dir.is_some() {
handler.early_warn("using -Z remark-dir without enabling remarks using e.g. -C remark=all");
}
let externs = parse_externs(handler, matches, &unstable_opts);
let crate_name = matches.opt_str("crate-name");