@@ -130,7 +130,7 @@ class HostSpecificConfiguration(object):
130
130
deployment_platform .is_embedded and \
131
131
not deployment_platform .is_simulator :
132
132
if deployment_platform not in \
133
- invocation .platforms_to_skip_test_host :
133
+ invocation .platforms_to_skip_test_host :
134
134
test_host_only = True
135
135
test = True
136
136
else :
@@ -142,7 +142,7 @@ class HostSpecificConfiguration(object):
142
142
# library, whereas the other targets can build a slightly
143
143
# smaller subset which is faster to build.
144
144
if args .build_swift_stdlib_unittest_extra or \
145
- args .validation_test or args .long_test :
145
+ args .validation_test or args .long_test :
146
146
self .swift_stdlib_build_targets .append (
147
147
"swift-stdlib-" + name )
148
148
else :
@@ -395,6 +395,18 @@ class BuildScriptInvocation(object):
395
395
args .stdlib_deployment_targets .append (
396
396
StdlibDeploymentTarget .Android .armv7 .name )
397
397
398
+ # Infer platform flags from manually-specified configure targets.
399
+ # This doesn't apply to Darwin platforms, as they are
400
+ # already configured. No building without the platform flag, though.
401
+
402
+ android_tgts = [tgt for tgt in args .stdlib_deployment_targets
403
+ if StdlibDeploymentTarget .Android .contains (tgt )]
404
+ if not args .android and len (android_tgts ) > 0 :
405
+ args .android = True
406
+ args .skip_build_android = True
407
+
408
+ # ---
409
+
398
410
def __init__ (self , toolchain , args ):
399
411
self .toolchain = toolchain
400
412
self .args = args
@@ -1771,12 +1783,12 @@ details of the setups of other systems or automated environments.""")
1771
1783
if args .cmake is not None :
1772
1784
toolchain .cmake = args .cmake
1773
1785
1774
- # Validate the arguments.
1775
- BuildScriptInvocation .validate_arguments (toolchain , args )
1776
-
1777
1786
# Preprocess the arguments to apply defaults.
1778
1787
BuildScriptInvocation .apply_default_arguments (toolchain , args )
1779
1788
1789
+ # Validate the arguments.
1790
+ BuildScriptInvocation .validate_arguments (toolchain , args )
1791
+
1780
1792
# Create the build script invocation.
1781
1793
invocation = BuildScriptInvocation (toolchain , args )
1782
1794
0 commit comments