SHA256
1
0
forked from pool/rust1.71
rust1.71/ignore-Wstring-conversion.patch

18 lines
516 B
Diff
Raw Permalink Normal View History

Index: rustc-1.51.0-src/compiler/rustc_llvm/build.rs
===================================================================
--- rustc-1.51.0-src.orig/compiler/rustc_llvm/build.rs
+++ rustc-1.51.0-src/compiler/rustc_llvm/build.rs
@@ -154,6 +154,12 @@ fn main() {
continue;
}
+ // hack to avoid flag on openSUSE which is incompatible with GCC
+ if flag.starts_with("-W") && flag.contains("string-conversion") {
+ continue;
+ }
+
+
cfg.flag(flag);
}