projects
/
rustc.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
a3c5fb6
)
Don't split dwarf debug for a fully-reproducible build
author
Ximin Luo
<infinity0@debian.org>
Tue, 1 Dec 2020 19:57:48 +0000
(19:57 +0000)
committer
Ximin Luo
<infinity0@debian.org>
Tue, 1 Dec 2020 19:57:48 +0000
(19:57 +0000)
Bug: https://github.com/rust-lang/rust/issues/34902
Gbp-Pq: Name u-reproducible-build.patch
compiler/rustc_llvm/build.rs
patch
|
blob
|
history
diff --git
a/compiler/rustc_llvm/build.rs
b/compiler/rustc_llvm/build.rs
index 7f1e5cf336ac414046673967de62c72864876a05..92cf950324cd56fac61b20aeb5a82dd92d75c5e8 100644
(file)
--- a/
compiler/rustc_llvm/build.rs
+++ b/
compiler/rustc_llvm/build.rs
@@
-137,6
+137,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;