@@ -126,7 +126,7 @@ extern crate lazy_static;
126126extern crate serde_json;
127127extern crate cmake;
128128extern crate filetime;
129- extern crate gcc ;
129+ extern crate cc ;
130130extern crate getopts;
131131extern crate num_cpus;
132132extern crate toml;
@@ -148,7 +148,7 @@ use build_helper::{run_silent, run_suppressed, try_run_silent, try_run_suppresse
148148
149149use util:: { exe, libdir, OutputFolder , CiEnv } ;
150150
151- mod cc ;
151+ mod cc_detect ;
152152mod channel;
153153mod check;
154154mod clean;
@@ -241,9 +241,9 @@ pub struct Build {
241241
242242 // Runtime state filled in later on
243243 // target -> (cc, ar)
244- cc : HashMap < Interned < String > , ( gcc :: Tool , Option < PathBuf > ) > ,
244+ cc : HashMap < Interned < String > , ( cc :: Tool , Option < PathBuf > ) > ,
245245 // host -> (cc, ar)
246- cxx : HashMap < Interned < String > , gcc :: Tool > ,
246+ cxx : HashMap < Interned < String > , cc :: Tool > ,
247247 crates : HashMap < Interned < String > , Crate > ,
248248 is_sudo : bool ,
249249 ci_env : CiEnv ,
@@ -350,7 +350,7 @@ impl Build {
350350 }
351351
352352 self . verbose ( "finding compilers" ) ;
353- cc :: find ( self ) ;
353+ cc_detect :: find ( self ) ;
354354 self . verbose ( "running sanity check" ) ;
355355 sanity:: check ( self ) ;
356356 // If local-rust is the same major.minor as the current version, then force a local-rebuild
@@ -619,7 +619,7 @@ impl Build {
619619 /// specified.
620620 fn cflags ( & self , target : Interned < String > ) -> Vec < String > {
621621 // Filter out -O and /O (the optimization flags) that we picked up from
622- // gcc -rs because the build scripts will determine that for themselves.
622+ // cc -rs because the build scripts will determine that for themselves.
623623 let mut base = self . cc [ & target] . 0 . args ( ) . iter ( )
624624 . map ( |s| s. to_string_lossy ( ) . into_owned ( ) )
625625 . filter ( |s| !s. starts_with ( "-O" ) && !s. starts_with ( "/O" ) )
0 commit comments