mirror of
https://git.proxmox.com/git/rustc
synced 2025-08-18 09:06:27 +00:00
19 lines
656 B
Diff
19 lines
656 B
Diff
Description: Don't split dwarf debug for a fully-reproducible build
|
|
Author: Ximin Luo <infinity0@debian.org>
|
|
Bug: https://github.com/rust-lang/rust/issues/34902
|
|
|
|
--- a/compiler/rustc_llvm/build.rs
|
|
+++ b/compiler/rustc_llvm/build.rs
|
|
@@ -134,6 +134,11 @@
|
|
let mut cfg = cc::Build::new();
|
|
cfg.warnings(false);
|
|
for flag in cxxflags.split_whitespace() {
|
|
+ // Split-dwarf gives unreproducible DW_AT_GNU_dwo_id so don't do it
|
|
+ if flag == "-gsplit-dwarf" {
|
|
+ continue;
|
|
+ }
|
|
+
|
|
// Ignore flags like `-m64` when we're doing a cross build
|
|
if is_crossed && flag.starts_with("-m") {
|
|
continue;
|