]>
Commit | Line | Data |
---|---|---|
5bb5e821 XL |
1 | Description: Don't split dwarf debug for a fully-reproducible build |
2 | Author: Ximin Luo <infinity0@debian.org> | |
3 | Bug: https://github.com/rust-lang/rust/issues/34902 | |
4 | ||
cefde48f XL |
5 | --- a/compiler/rustc_llvm/build.rs |
6 | +++ b/compiler/rustc_llvm/build.rs | |
7 | @@ -134,6 +134,11 @@ | |
f9f51dbf XL |
8 | let mut cfg = cc::Build::new(); |
9 | cfg.warnings(false); | |
5bb5e821 XL |
10 | for flag in cxxflags.split_whitespace() { |
11 | + // Split-dwarf gives unreproducible DW_AT_GNU_dwo_id so don't do it | |
12 | + if flag == "-gsplit-dwarf" { | |
13 | + continue; | |
14 | + } | |
15 | + | |
16 | // Ignore flags like `-m64` when we're doing a cross build | |
17 | if is_crossed && flag.starts_with("-m") { | |
18 | continue; |