u-reproducible-build
authorDebian Rust Maintainers <pkg-rust-maintainers@alioth-lists.debian.net>
Mon, 28 Jan 2019 06:02:48 +0000 (06:02 +0000)
committerXimin Luo <infinity0@debian.org>
Mon, 28 Jan 2019 06:02:48 +0000 (06:02 +0000)
Gbp-Pq: Name u-reproducible-build.patch

src/librustc_llvm/build.rs

index 7d01ed556c8ddbee7d76dbdc369c7cb937ab5480..c07eb2a237eaaf8e67d2694e24e1c72120fbbb40 100644 (file)
@@ -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;