@@ -181,7 +181,7 @@ fn test_language_clang() {
181
181
182
182
#[ test]
183
183
fn test_new_cc_build ( ) {
184
- let build = Build :: new ( Config { ..Config :: parse ( Flags :: parse ( & [ "check " . to_owned ( ) ] ) ) } ) ;
184
+ let build = Build :: new ( Config { ..Config :: parse ( Flags :: parse ( & [ "build " . to_owned ( ) ] ) ) } ) ;
185
185
let target = TargetSelection :: from_user ( "x86_64-unknown-linux-gnu" ) ;
186
186
let cfg = new_cc_build ( & build, target. clone ( ) ) ;
187
187
let compiler = cfg. get_compiler ( ) ;
@@ -190,7 +190,7 @@ fn test_new_cc_build() {
190
190
191
191
#[ test]
192
192
fn test_default_compiler_wasi ( ) {
193
- let build = Build :: new ( Config { ..Config :: parse ( Flags :: parse ( & [ "check " . to_owned ( ) ] ) ) } ) ;
193
+ let build = Build :: new ( Config { ..Config :: parse ( Flags :: parse ( & [ "build " . to_owned ( ) ] ) ) } ) ;
194
194
let target = TargetSelection :: from_user ( "wasm32-wasi" ) ;
195
195
let wasi_sdk = PathBuf :: from ( "/wasi-sdk" ) ;
196
196
// SAFETY: bootstrap tests run on a single thread
@@ -215,7 +215,7 @@ fn test_default_compiler_wasi() {
215
215
216
216
#[ test]
217
217
fn test_default_compiler_fallback ( ) {
218
- let build = Build :: new ( Config { ..Config :: parse ( Flags :: parse ( & [ "check " . to_owned ( ) ] ) ) } ) ;
218
+ let build = Build :: new ( Config { ..Config :: parse ( Flags :: parse ( & [ "build " . to_owned ( ) ] ) ) } ) ;
219
219
let target = TargetSelection :: from_user ( "x86_64-unknown-linux-gnu" ) ;
220
220
let mut cfg = cc:: Build :: new ( ) ;
221
221
let result = default_compiler ( & mut cfg, Language :: C , target, & build) ;
@@ -224,7 +224,7 @@ fn test_default_compiler_fallback() {
224
224
225
225
#[ test]
226
226
fn test_find_target_with_config ( ) {
227
- let mut build = Build :: new ( Config { ..Config :: parse ( Flags :: parse ( & [ "check " . to_owned ( ) ] ) ) } ) ;
227
+ let mut build = Build :: new ( Config { ..Config :: parse ( Flags :: parse ( & [ "build " . to_owned ( ) ] ) ) } ) ;
228
228
let target = TargetSelection :: from_user ( "x86_64-unknown-linux-gnu" ) ;
229
229
let mut target_config = Target :: default ( ) ;
230
230
target_config. cc = Some ( PathBuf :: from ( "dummy-cc" ) ) ;
@@ -249,7 +249,7 @@ fn test_find_target_with_config() {
249
249
250
250
#[ test]
251
251
fn test_find_target_without_config ( ) {
252
- let mut build = Build :: new ( Config { ..Config :: parse ( Flags :: parse ( & [ "check " . to_owned ( ) ] ) ) } ) ;
252
+ let mut build = Build :: new ( Config { ..Config :: parse ( Flags :: parse ( & [ "build " . to_owned ( ) ] ) ) } ) ;
253
253
let target = TargetSelection :: from_user ( "x86_64-unknown-linux-gnu" ) ;
254
254
build. config . target_config . clear ( ) ;
255
255
find_target ( & build, target. clone ( ) ) ;
@@ -262,7 +262,7 @@ fn test_find_target_without_config() {
262
262
263
263
#[ test]
264
264
fn test_find ( ) {
265
- let mut build = Build :: new ( Config { ..Config :: parse ( Flags :: parse ( & [ "check " . to_owned ( ) ] ) ) } ) ;
265
+ let mut build = Build :: new ( Config { ..Config :: parse ( Flags :: parse ( & [ "build " . to_owned ( ) ] ) ) } ) ;
266
266
let target1 = TargetSelection :: from_user ( "x86_64-unknown-linux-gnu" ) ;
267
267
let target2 = TargetSelection :: from_user ( "x86_64-unknown-openbsd" ) ;
268
268
build. targets . push ( target1. clone ( ) ) ;
0 commit comments