Skip to content

Commit a9a9798

Browse files
Removing absolute path in proc-macro
With rust 1.75 the absolute build path is embedding into '.rustc' section and which causes reproducibility issues. Detailed issue is here. #120825 (comment) With this change the 'absolute path' changed back to '/rust/$hash' format.
1 parent 70aa0b8 commit a9a9798

File tree

1 file changed

+0
-13
lines changed

1 file changed

+0
-13
lines changed

compiler/rustc_session/src/session.rs

-13
Original file line numberDiff line numberDiff line change
@@ -898,19 +898,6 @@ impl Session {
898898
}
899899

900900
pub fn should_prefer_remapped_for_codegen(&self) -> bool {
901-
// bail out, if any of the requested crate types aren't:
902-
// "compiled executables or libraries"
903-
for crate_type in &self.opts.crate_types {
904-
match crate_type {
905-
CrateType::Executable
906-
| CrateType::Dylib
907-
| CrateType::Rlib
908-
| CrateType::Staticlib
909-
| CrateType::Cdylib => continue,
910-
CrateType::ProcMacro => return false,
911-
}
912-
}
913-
914901
let has_split_debuginfo = match self.split_debuginfo() {
915902
SplitDebuginfo::Off => false,
916903
SplitDebuginfo::Packed => true,

0 commit comments

Comments
 (0)