@@ -1203,17 +1203,6 @@ note: if you're sure you want to do this, please open an issue as to why. In the
1203
1203
// Only pass correct values for these flags for the `run-make` suite as it
1204
1204
// requires that a C++ compiler was configured which isn't always the case.
1205
1205
if !builder. config . dry_run && matches ! ( suite, "run-make" | "run-make-fulldeps" ) {
1206
- cmd. arg ( "--cc" )
1207
- . arg ( builder. cc ( target) )
1208
- . arg ( "--cxx" )
1209
- . arg ( builder. cxx ( target) . unwrap ( ) )
1210
- . arg ( "--cflags" )
1211
- . arg ( builder. cflags ( target, GitRepo :: Rustc ) . join ( " " ) ) ;
1212
- copts_passed = true ;
1213
- if let Some ( ar) = builder. ar ( target) {
1214
- cmd. arg ( "--ar" ) . arg ( ar) ;
1215
- }
1216
-
1217
1206
// The llvm/bin directory contains many useful cross-platform
1218
1207
// tools. Pass the path to run-make tests so they can use them.
1219
1208
let llvm_bin_path = llvm_config
@@ -1239,6 +1228,21 @@ note: if you're sure you want to do this, please open an issue as to why. In the
1239
1228
}
1240
1229
}
1241
1230
1231
+ // Only pass correct values for these flags for the `run-make` suite as it
1232
+ // requires that a C++ compiler was configured which isn't always the case.
1233
+ if !builder. config . dry_run && matches ! ( suite, "run-make" | "run-make-fulldeps" ) {
1234
+ cmd. arg ( "--cc" )
1235
+ . arg ( builder. cc ( target) )
1236
+ . arg ( "--cxx" )
1237
+ . arg ( builder. cxx ( target) . unwrap ( ) )
1238
+ . arg ( "--cflags" )
1239
+ . arg ( builder. cflags ( target, GitRepo :: Rustc ) . join ( " " ) ) ;
1240
+ copts_passed = true ;
1241
+ if let Some ( ar) = builder. ar ( target) {
1242
+ cmd. arg ( "--ar" ) . arg ( ar) ;
1243
+ }
1244
+ }
1245
+
1242
1246
if !llvm_components_passed {
1243
1247
cmd. arg ( "--llvm-components" ) . arg ( "" ) ;
1244
1248
}
0 commit comments