@@ -142,8 +142,8 @@ pub fn find_target(build: &Build, target: TargetSelection) {
142142 } ;
143143
144144 build. cc . borrow_mut ( ) . insert ( target, compiler. clone ( ) ) ;
145- let mut cflags = build. default_cflags ( target, CLang :: C ) ;
146- cflags. extend ( build. extra_cflags ( target, GitRepo :: Rustc , CLang :: C ) ) ;
145+ let mut cflags = build. cc_handled_clags ( target, CLang :: C ) ;
146+ cflags. extend ( build. cc_unhandled_cflags ( target, GitRepo :: Rustc , CLang :: C ) ) ;
147147
148148 // If we use llvm-libunwind, we will need a C++ compiler as well for all targets
149149 // We'll need one anyways if the target triple is also a host triple
@@ -169,8 +169,8 @@ pub fn find_target(build: &Build, target: TargetSelection) {
169169 build. verbose ( || println ! ( "CC_{} = {:?}" , target. triple, build. cc( target) ) ) ;
170170 build. verbose ( || println ! ( "CFLAGS_{} = {cflags:?}" , target. triple) ) ;
171171 if let Ok ( cxx) = build. cxx ( target) {
172- let mut cxxflags = build. default_cflags ( target, CLang :: Cxx ) ;
173- cxxflags. extend ( build. extra_cflags ( target, GitRepo :: Rustc , CLang :: Cxx ) ) ;
172+ let mut cxxflags = build. cc_handled_clags ( target, CLang :: Cxx ) ;
173+ cxxflags. extend ( build. cc_unhandled_cflags ( target, GitRepo :: Rustc , CLang :: Cxx ) ) ;
174174 build. verbose ( || println ! ( "CXX_{} = {cxx:?}" , target. triple) ) ;
175175 build. verbose ( || println ! ( "CXXFLAGS_{} = {cxxflags:?}" , target. triple) ) ;
176176 }
0 commit comments