projects
/
rustc.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
11dbd07
)
Don't split dwarf debug for a fully-reproducible build
author
Ximin Luo
<infinity0@debian.org>
Thu, 14 Jul 2022 11:17:37 +0000
(13:17 +0200)
committer
Fabian Grünbichler
<debian@fabian.gruenbichler.email>
Sun, 3 Sep 2023 17:58:53 +0000
(18:58 +0100)
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 0b3c057345a67d9a532e4b15e041f353b88f1743..8f044b8849b0efc706614a677f560b2ff994f5ee 100644
(file)
--- a/
compiler/rustc_llvm/build.rs
+++ b/
compiler/rustc_llvm/build.rs
@@
-179,6
+179,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;