diff options
| author | bors <bors@rust-lang.org> | 2023-05-18 21:45:02 +0000 |
|---|---|---|
| committer | bors <bors@rust-lang.org> | 2023-05-18 21:45:02 +0000 |
| commit | c9dc55d05c9a111300271b7f8b8f62220ce9ad1e (patch) | |
| tree | cfb1c94a9592cd57a5f53e22829813c80e218504 /compiler/rustc_codegen_llvm/src | |
| parent | d3f416dc063fc478c7250873246cb2d4136d8c42 (diff) | |
| parent | d5f2b8e5c65b0406254b990296793f664c1926a0 (diff) | |
| download | rust-c9dc55d05c9a111300271b7f8b8f62220ce9ad1e.tar.gz rust-c9dc55d05c9a111300271b7f8b8f62220ce9ad1e.zip | |
Auto merge of #111345 - jyn514:cfg-release-caching, r=cjgillot,est31
Only depend on CFG_VERSION in rustc_interface This avoids having to rebuild the whole compiler on each commit when `omit-git-hash = false`. cc https://github.com/rust-lang/rust/issues/76720 - this won't fix it, and I'm not suggesting we turn this on by default, but it will make it less painful for people who do have `omit-git-hash` on as a workaround.
Diffstat (limited to 'compiler/rustc_codegen_llvm/src')
| -rw-r--r-- | compiler/rustc_codegen_llvm/src/debuginfo/metadata.rs | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/compiler/rustc_codegen_llvm/src/debuginfo/metadata.rs b/compiler/rustc_codegen_llvm/src/debuginfo/metadata.rs index 25fe3cb265d..bd2fba12602 100644 --- a/compiler/rustc_codegen_llvm/src/debuginfo/metadata.rs +++ b/compiler/rustc_codegen_llvm/src/debuginfo/metadata.rs @@ -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); |
