projects
/
rustc.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
e67c5c8
)
Don't split dwarf debug for a fully-reproducible build
author
Ximin Luo
<infinity0@debian.org>
Sat, 18 May 2019 19:18:25 +0000
(20:18 +0100)
committer
Ximin Luo
<infinity0@debian.org>
Sat, 18 May 2019 19:18:25 +0000
(20:18 +0100)
Bug: https://github.com/rust-lang/rust/issues/34902
Gbp-Pq: Name u-reproducible-build.patch
src/librustc_llvm/build.rs
patch
|
blob
|
history
diff --git
a/src/librustc_llvm/build.rs
b/src/librustc_llvm/build.rs
index d4a3ae273fcd40935aae7a13ed48a61a2918c972..cfc7a4a5ddc4b2327cc8d0e49d176ab574137290 100644
(file)
--- a/
src/librustc_llvm/build.rs
+++ b/
src/librustc_llvm/build.rs
@@
-127,6
+127,11
@@
fn main() {
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;