File tree 4 files changed +5
-2
lines changed
4 files changed +5
-2
lines changed Original file line number Diff line number Diff line change @@ -24,6 +24,7 @@ fn main() {
24
24
. target ( & target)
25
25
. host ( & target)
26
26
. opt_level ( 0 )
27
+ . warnings ( false )
27
28
. debug ( false ) ;
28
29
let compiler = cfg. get_compiler ( ) ;
29
30
Original file line number Diff line number Diff line change @@ -46,7 +46,7 @@ pub fn find(build: &mut Build) {
46
46
// and such as well as for being a linker for Rust code.
47
47
for target in build. targets . iter ( ) . chain ( & build. hosts ) . cloned ( ) . chain ( iter:: once ( build. build ) ) {
48
48
let mut cfg = gcc:: Build :: new ( ) ;
49
- cfg. cargo_metadata ( false ) . opt_level ( 0 ) . debug ( false )
49
+ cfg. cargo_metadata ( false ) . opt_level ( 0 ) . warnings ( false ) . debug ( false )
50
50
. target ( & target) . host ( & build. build ) ;
51
51
52
52
let config = build. config . target_config . get ( & target) ;
@@ -68,7 +68,7 @@ pub fn find(build: &mut Build) {
68
68
// For all host triples we need to find a C++ compiler as well
69
69
for host in build. hosts . iter ( ) . cloned ( ) . chain ( iter:: once ( build. build ) ) {
70
70
let mut cfg = gcc:: Build :: new ( ) ;
71
- cfg. cargo_metadata ( false ) . opt_level ( 0 ) . debug ( false ) . cpp ( true )
71
+ cfg. cargo_metadata ( false ) . opt_level ( 0 ) . warnings ( false ) . debug ( false ) . cpp ( true )
72
72
. target ( & host) . host ( & build. build ) ;
73
73
let config = build. config . target_config . get ( & host) ;
74
74
if let Some ( cxx) = config. and_then ( |c| c. cxx . as_ref ( ) ) {
Original file line number Diff line number Diff line change @@ -306,6 +306,7 @@ impl Step for TestHelpers {
306
306
. target ( & target)
307
307
. host ( & build. build )
308
308
. opt_level ( 0 )
309
+ . warnings ( false )
309
310
. debug ( false )
310
311
. file ( build. src . join ( "src/rt/rust_test_helpers.c" ) )
311
312
. compile ( "librust_test_helpers.a" ) ;
Original file line number Diff line number Diff line change @@ -137,6 +137,7 @@ fn main() {
137
137
cmd. arg ( "--cxxflags" ) ;
138
138
let cxxflags = output ( & mut cmd) ;
139
139
let mut cfg = gcc:: Build :: new ( ) ;
140
+ cfg. warnings ( false ) ;
140
141
for flag in cxxflags. split_whitespace ( ) {
141
142
// Ignore flags like `-m64` when we're doing a cross build
142
143
if is_crossed && flag. starts_with ( "-m" ) {
You can’t perform that action at this time.
0 commit comments