projects
/
rustc.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
796a1ea
)
Don't split dwarf debug for a fully-reproducible build
author
Ximin Luo
<infinity0@debian.org>
Sat, 29 Aug 2020 15:54:36 +0000
(16:54 +0100)
committer
Ximin Luo
<infinity0@debian.org>
Sat, 29 Aug 2020 15:54:36 +0000
(16:54 +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 d25f8bd1b8c58c9bbbc78ab1e1d920c436f7a910..b2c550ad0be9350b0e1c6a51a996f9d575c56393 100644
(file)
--- a/
src/librustc_llvm/build.rs
+++ b/
src/librustc_llvm/build.rs
@@
-132,6
+132,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;