File tree 2 files changed +11
-0
lines changed
2 files changed +11
-0
lines changed Original file line number Diff line number Diff line change @@ -185,6 +185,11 @@ pub fn std_cargo(builder: &Builder<'_>,
185
185
String :: new ( )
186
186
} ;
187
187
188
+ if let Some ( ar) = builder. ar ( target) {
189
+ cargo. env ( "RUSTBUILD_AR" , ar) ;
190
+ }
191
+ cargo. env ( "RUSTBUILD_CC" , builder. cc ( target) ) ;
192
+
188
193
if builder. no_std ( target) == Some ( true ) {
189
194
let mut features = "compiler-builtins-mem" . to_string ( ) ;
190
195
features. push_str ( & compiler_builtins_c_feature) ;
Original file line number Diff line number Diff line change @@ -53,6 +53,12 @@ mod llvm_libunwind {
53
53
let target_vendor = env:: var ( "CARGO_CFG_TARGET_VENDOR" ) . unwrap ( ) ;
54
54
let cfg = & mut cc:: Build :: new ( ) ;
55
55
56
+ if let Ok ( build_ar) = env:: var ( "RUSTBUILD_AR" ) {
57
+ cfg. archiver ( build_ar) ;
58
+ }
59
+ if let Ok ( build_cc) = env:: var ( "RUSTBUILD_CC" ) {
60
+ cfg. compiler ( build_cc) ;
61
+ }
56
62
cfg. cpp ( true ) ;
57
63
cfg. cpp_set_stdlib ( None ) ;
58
64
cfg. warnings ( false ) ;
You can’t perform that action at this time.
0 commit comments