23
23
//! 6. "cc"
24
24
//!
25
25
//! Some of this logic is implemented here, but much of it is farmed out to the
26
- //! `gcc ` crate itself, so we end up having the same fallbacks as there.
26
+ //! `cc ` crate itself, so we end up having the same fallbacks as there.
27
27
//! Similar logic is then used to find a C++ compiler, just some s/cc/c++/ is
28
28
//! used.
29
29
//!
@@ -35,7 +35,7 @@ use std::process::Command;
35
35
use std:: iter;
36
36
37
37
use build_helper:: { cc2ar, output} ;
38
- use gcc ;
38
+ use cc ;
39
39
40
40
use Build ;
41
41
use config:: Target ;
@@ -45,7 +45,7 @@ pub fn find(build: &mut Build) {
45
45
// For all targets we're going to need a C compiler for building some shims
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
- let mut cfg = gcc :: Build :: new ( ) ;
48
+ let mut cfg = cc :: Build :: new ( ) ;
49
49
cfg. cargo_metadata ( false ) . opt_level ( 0 ) . warnings ( false ) . debug ( false )
50
50
. target ( & target) . host ( & build. build ) ;
51
51
@@ -67,7 +67,7 @@ pub fn find(build: &mut Build) {
67
67
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
- let mut cfg = gcc :: Build :: new ( ) ;
70
+ let mut cfg = cc :: Build :: new ( ) ;
71
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) ;
@@ -82,7 +82,7 @@ pub fn find(build: &mut Build) {
82
82
}
83
83
}
84
84
85
- fn set_compiler ( cfg : & mut gcc :: Build ,
85
+ fn set_compiler ( cfg : & mut cc :: Build ,
86
86
gnu_compiler : & str ,
87
87
target : Interned < String > ,
88
88
config : Option < & Target > ,
0 commit comments