@@ -142,8 +142,8 @@ pub fn find_target(build: &Build, target: TargetSelection) {
142
142
} ;
143
143
144
144
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 ) ) ;
147
147
148
148
// If we use llvm-libunwind, we will need a C++ compiler as well for all targets
149
149
// 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) {
169
169
build. verbose ( || println ! ( "CC_{} = {:?}" , target. triple, build. cc( target) ) ) ;
170
170
build. verbose ( || println ! ( "CFLAGS_{} = {cflags:?}" , target. triple) ) ;
171
171
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 ) ) ;
174
174
build. verbose ( || println ! ( "CXX_{} = {cxx:?}" , target. triple) ) ;
175
175
build. verbose ( || println ! ( "CXXFLAGS_{} = {cxxflags:?}" , target. triple) ) ;
176
176
}
0 commit comments