Only depend on CFG_VERSION in rustc_interface
this avoids having to rebuild the whole compiler on each commit when `omit-git-hash = false`.
This commit is contained in:
parent
0dddad0dc5
commit
d5f2b8e5c6
24 changed files with 97 additions and 71 deletions
|
@ -806,8 +806,7 @@ pub fn build_compile_unit_di_node<'ll, 'tcx>(
|
|||
name_in_debuginfo.push(codegen_unit_name);
|
||||
|
||||
debug!("build_compile_unit_di_node: {:?}", name_in_debuginfo);
|
||||
let rustc_producer =
|
||||
format!("rustc version {}", option_env!("CFG_VERSION").expect("CFG_VERSION"),);
|
||||
let rustc_producer = format!("rustc version {}", tcx.sess.cfg_version);
|
||||
// FIXME(#41252) Remove "clang LLVM" if we can get GDB and LLVM to play nice.
|
||||
let producer = format!("clang LLVM ({})", rustc_producer);
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue