@@ -268,80 +268,80 @@ class BuildScriptInvocation(object):
268
268
# iterate over all supported platforms.
269
269
270
270
self .platforms_to_skip_build = set ()
271
- if args .skip_build_linux :
271
+ if not args .build_linux :
272
272
self .platforms_to_skip_build .add (StdlibDeploymentTarget .Linux )
273
- if args .skip_build_freebsd :
273
+ if not args .build_freebsd :
274
274
self .platforms_to_skip_build .add (StdlibDeploymentTarget .FreeBSD )
275
- if args .skip_build_cygwin :
275
+ if not args .build_cygwin :
276
276
self .platforms_to_skip_build .add (StdlibDeploymentTarget .Cygwin )
277
- if args .skip_build_osx :
277
+ if not args .build_osx :
278
278
self .platforms_to_skip_build .add (StdlibDeploymentTarget .OSX )
279
- if args .skip_build_ios_device :
279
+ if not args .build_ios_device :
280
280
self .platforms_to_skip_build .add (StdlibDeploymentTarget .iOS )
281
- if args .skip_build_ios_simulator :
281
+ if not args .build_ios_simulator :
282
282
self .platforms_to_skip_build .add (
283
283
StdlibDeploymentTarget .iOSSimulator )
284
- if args .skip_build_tvos_device :
284
+ if not args .build_tvos_device :
285
285
self .platforms_to_skip_build .add (StdlibDeploymentTarget .AppleTV )
286
- if args .skip_build_tvos_simulator :
286
+ if not args .build_tvos_simulator :
287
287
self .platforms_to_skip_build .add (
288
288
StdlibDeploymentTarget .AppleTVSimulator )
289
- if args .skip_build_watchos_device :
289
+ if not args .build_watchos_device :
290
290
self .platforms_to_skip_build .add (StdlibDeploymentTarget .AppleWatch )
291
- if args .skip_build_watchos_simulator :
291
+ if not args .build_watchos_simulator :
292
292
self .platforms_to_skip_build .add (
293
293
StdlibDeploymentTarget .AppleWatchSimulator )
294
- if args .skip_build_android :
294
+ if not args .build_android :
295
295
self .platforms_to_skip_build .add (StdlibDeploymentTarget .Android )
296
296
297
297
self .platforms_to_skip_test = set ()
298
298
self .platforms_archs_to_skip_test = set ()
299
- if args .skip_test_linux :
299
+ if not args .test_linux :
300
300
self .platforms_to_skip_test .add (StdlibDeploymentTarget .Linux )
301
- if args .skip_test_freebsd :
301
+ if not args .test_freebsd :
302
302
self .platforms_to_skip_test .add (StdlibDeploymentTarget .FreeBSD )
303
- if args .skip_test_cygwin :
303
+ if not args .test_cygwin :
304
304
self .platforms_to_skip_test .add (StdlibDeploymentTarget .Cygwin )
305
- if args .skip_test_osx :
305
+ if not args .test_osx :
306
306
self .platforms_to_skip_test .add (StdlibDeploymentTarget .OSX )
307
- if args .skip_test_ios_host :
307
+ if not args .test_ios_device :
308
308
self .platforms_to_skip_test .add (StdlibDeploymentTarget .iOS )
309
309
else :
310
310
exit_rejecting_arguments ("error: iOS device tests are not " +
311
311
"supported in open-source Swift." )
312
- if args .skip_test_ios_simulator :
312
+ if not args .test_ios_simulator :
313
313
self .platforms_to_skip_test .add (
314
314
StdlibDeploymentTarget .iOSSimulator )
315
- if args .skip_test_ios_32bit_simulator :
315
+ if not args .test_ios_32bit_simulator :
316
316
self .platforms_archs_to_skip_test .add (
317
317
StdlibDeploymentTarget .iOSSimulator .i386 )
318
- if args .skip_test_tvos_host :
318
+ if not args .test_tvos_device :
319
319
self .platforms_to_skip_test .add (StdlibDeploymentTarget .AppleTV )
320
320
else :
321
321
exit_rejecting_arguments ("error: tvOS device tests are not " +
322
322
"supported in open-source Swift." )
323
- if args .skip_test_tvos_simulator :
323
+ if not args .test_tvos_simulator :
324
324
self .platforms_to_skip_test .add (
325
325
StdlibDeploymentTarget .AppleTVSimulator )
326
- if args .skip_test_watchos_host :
326
+ if not args .test_watchos_device :
327
327
self .platforms_to_skip_test .add (StdlibDeploymentTarget .AppleWatch )
328
328
else :
329
329
exit_rejecting_arguments ("error: watchOS device tests are not " +
330
330
"supported in open-source Swift." )
331
- if args .skip_test_watchos_simulator :
331
+ if not args .test_watchos_simulator :
332
332
self .platforms_to_skip_test .add (
333
333
StdlibDeploymentTarget .AppleWatchSimulator )
334
334
335
- if args .skip_test_android_host :
335
+ if not args .test_android_device :
336
336
self .platforms_to_skip_test .add (StdlibDeploymentTarget .Android )
337
337
338
338
self .platforms_to_skip_test_host = set ()
339
- if args .skip_test_ios_host :
339
+ if not args .test_ios_device :
340
340
self .platforms_to_skip_test_host .add (StdlibDeploymentTarget .iOS )
341
- if args .skip_test_tvos_host :
341
+ if not args .test_tvos_device :
342
342
self .platforms_to_skip_test_host .add (
343
343
StdlibDeploymentTarget .AppleTV )
344
- if args .skip_test_watchos_host :
344
+ if not args .test_watchos_device :
345
345
self .platforms_to_skip_test_host .add (
346
346
StdlibDeploymentTarget .AppleWatch )
347
347
@@ -501,7 +501,7 @@ class BuildScriptInvocation(object):
501
501
impl_args += ["--skip-build-cmark" ,
502
502
"--skip-build-llvm" ,
503
503
"--skip-build-swift" ]
504
- if args .skip_build_benchmarks :
504
+ if not args .build_benchmarks :
505
505
impl_args += ["--skip-build-benchmarks" ]
506
506
if not args .build_foundation :
507
507
impl_args += ["--skip-build-foundation" ]
@@ -532,27 +532,27 @@ class BuildScriptInvocation(object):
532
532
if args .build_swift_static_sdk_overlay :
533
533
impl_args += ["--build-swift-static-sdk-overlay" ]
534
534
535
- if args .skip_build_linux :
535
+ if not args .build_linux :
536
536
impl_args += ["--skip-build-linux" ]
537
- if args .skip_build_freebsd :
537
+ if not args .build_freebsd :
538
538
impl_args += ["--skip-build-freebsd" ]
539
- if args .skip_build_cygwin :
539
+ if not args .build_cygwin :
540
540
impl_args += ["--skip-build-cygwin" ]
541
- if args .skip_build_osx :
541
+ if not args .build_osx :
542
542
impl_args += ["--skip-build-osx" ]
543
- if args .skip_build_ios_device :
543
+ if not args .build_ios_device :
544
544
impl_args += ["--skip-build-ios-device" ]
545
- if args .skip_build_ios_simulator :
545
+ if not args .build_ios_simulator :
546
546
impl_args += ["--skip-build-ios-simulator" ]
547
- if args .skip_build_tvos_device :
547
+ if not args .build_tvos_device :
548
548
impl_args += ["--skip-build-tvos-device" ]
549
- if args .skip_build_tvos_simulator :
549
+ if not args .build_tvos_simulator :
550
550
impl_args += ["--skip-build-tvos-simulator" ]
551
- if args .skip_build_watchos_device :
551
+ if not args .build_watchos_device :
552
552
impl_args += ["--skip-build-watchos-device" ]
553
- if args .skip_build_watchos_simulator :
553
+ if not args .build_watchos_simulator :
554
554
impl_args += ["--skip-build-watchos-simulator" ]
555
- if args .skip_build_android :
555
+ if not args .build_android :
556
556
impl_args += ["--skip-build-android" ]
557
557
558
558
if not args .test and not args .long_test :
@@ -568,29 +568,29 @@ class BuildScriptInvocation(object):
568
568
"--skip-test-libicu" ,
569
569
"--skip-test-playgroundlogger" ,
570
570
"--skip-test-playgroundsupport" ]
571
- if args .skip_test_linux :
571
+ if not args .test_linux :
572
572
impl_args += ["--skip-test-linux" ]
573
- if args .skip_test_freebsd :
573
+ if not args .test_freebsd :
574
574
impl_args += ["--skip-test-freebsd" ]
575
- if args .skip_test_cygwin :
575
+ if not args .test_cygwin :
576
576
impl_args += ["--skip-test-cygwin" ]
577
- if args .skip_test_osx :
577
+ if not args .test_osx :
578
578
impl_args += ["--skip-test-osx" ]
579
- if args .skip_test_ios_host :
579
+ if not args .test_ios_device :
580
580
impl_args += ["--skip-test-ios-host" ]
581
- if args .skip_test_ios_simulator :
581
+ if not args .test_ios_simulator :
582
582
impl_args += ["--skip-test-ios-simulator" ]
583
- if args .skip_test_ios_32bit_simulator :
583
+ if not args .test_ios_32bit_simulator :
584
584
impl_args += ["--skip-test-ios-32bit-simulator" ]
585
- if args .skip_test_tvos_host :
585
+ if not args .test_tvos_device :
586
586
impl_args += ["--skip-test-tvos-host" ]
587
- if args .skip_test_tvos_simulator :
587
+ if not args .test_tvos_simulator :
588
588
impl_args += ["--skip-test-tvos-simulator" ]
589
- if args .skip_test_watchos_host :
589
+ if not args .test_watchos_device :
590
590
impl_args += ["--skip-test-watchos-host" ]
591
- if args .skip_test_watchos_simulator :
591
+ if not args .test_watchos_simulator :
592
592
impl_args += ["--skip-test-watchos-simulator" ]
593
- if args .skip_test_android_host :
593
+ if not args .test_android_device :
594
594
impl_args += ["--skip-test-android-host" ]
595
595
if args .build_runtime_with_host_compiler :
596
596
impl_args += ["--build-runtime-with-host-compiler" ]
0 commit comments