Skip to content

Commit

Permalink
Unrolled build for rust-lang#121959
Browse files Browse the repository at this point in the history
Rollup merge of rust-lang#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 - rust-lang#120825 (comment)

With this change the 'absolute path' changed back to '/rust/$hash' format as in earlier revisions.
  • Loading branch information
rust-timer authored Mar 6, 2024
2 parents bfe762e + a9a9798 commit e44cb4c
Showing 1 changed file with 0 additions and 13 deletions.
13 changes: 0 additions & 13 deletions compiler/rustc_session/src/session.rs
Original file line number Diff line number Diff line change
Expand Up @@ -898,19 +898,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,
Expand Down

0 comments on commit e44cb4c

Please sign in to comment.