2323//! 6. "cc"
2424//!
2525//! 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.
2727//! Similar logic is then used to find a C++ compiler, just some s/cc/c++/ is
2828//! used.
2929//!
@@ -35,7 +35,7 @@ use std::process::Command;
3535use std:: iter;
3636
3737use build_helper:: { cc2ar, output} ;
38- use gcc ;
38+ use cc ;
3939
4040use Build ;
4141use config:: Target ;
@@ -45,7 +45,7 @@ pub fn find(build: &mut Build) {
4545 // For all targets we're going to need a C compiler for building some shims
4646 // and such as well as for being a linker for Rust code.
4747 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 ( ) ;
4949 cfg. cargo_metadata ( false ) . opt_level ( 0 ) . warnings ( false ) . debug ( false )
5050 . target ( & target) . host ( & build. build ) ;
5151
@@ -67,7 +67,7 @@ pub fn find(build: &mut Build) {
6767
6868 // For all host triples we need to find a C++ compiler as well
6969 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 ( ) ;
7171 cfg. cargo_metadata ( false ) . opt_level ( 0 ) . warnings ( false ) . debug ( false ) . cpp ( true )
7272 . target ( & host) . host ( & build. build ) ;
7373 let config = build. config . target_config . get ( & host) ;
@@ -82,7 +82,7 @@ pub fn find(build: &mut Build) {
8282 }
8383}
8484
85- fn set_compiler ( cfg : & mut gcc :: Build ,
85+ fn set_compiler ( cfg : & mut cc :: Build ,
8686 gnu_compiler : & str ,
8787 target : Interned < String > ,
8888 config : Option < & Target > ,
0 commit comments