mirror of
https://github.com/rust-lang/rust.git
synced 2024-11-25 16:24:46 +00:00
Rollup merge of #121959 - sundeep-kokkonda:patch-2, r=davidtwco
Removing absolute path in proc-macro With rust 1.75 the absolute build path name is embedding into proc-macro (.rustc section) and which causes reproducibility issues. Detailed issue description is here - https://github.com/rust-lang/rust/issues/120825#issuecomment-1964307219 With this change the 'absolute path' changed back to '/rust/$hash' format as in earlier revisions.
This commit is contained in:
commit
16d37fa804
@ -899,19 +899,6 @@ impl Session {
|
||||
}
|
||||
|
||||
pub fn should_prefer_remapped_for_codegen(&self) -> bool {
|
||||
// bail out, if any of the requested crate types aren't:
|
||||
// "compiled executables or libraries"
|
||||
for crate_type in &self.opts.crate_types {
|
||||
match crate_type {
|
||||
CrateType::Executable
|
||||
| CrateType::Dylib
|
||||
| CrateType::Rlib
|
||||
| CrateType::Staticlib
|
||||
| CrateType::Cdylib => continue,
|
||||
CrateType::ProcMacro => return false,
|
||||
}
|
||||
}
|
||||
|
||||
let has_split_debuginfo = match self.split_debuginfo() {
|
||||
SplitDebuginfo::Off => false,
|
||||
SplitDebuginfo::Packed => true,
|
||||
|
Loading…
Reference in New Issue
Block a user