File tree Expand file tree Collapse file tree 1 file changed +7
-3
lines changed Expand file tree Collapse file tree 1 file changed +7
-3
lines changed Original file line number Diff line number Diff line change @@ -143,10 +143,14 @@ config.substitutions.append(('%{xctest_checker}', '%%{python} %s' % xctest_check
143
143
config .substitutions .append ( ('%{python}' , pipes .quote (sys .executable )) )
144
144
145
145
# Conditionally report the Swift 5.5 Concurrency runtime as available depending on the OS and version.
146
+ # Darwin is the only platform where this is a limitation.
146
147
(run_os , run_vers ) = config .os_info
147
- os_is_not_macOS = run_os != 'Darwin'
148
- macOS_version_is_recent_enough = parse_version (run_vers ) >= parse_version ('12.0' )
149
- if os_is_not_macOS or macOS_version_is_recent_enough :
148
+ if run_os == 'Darwin' :
149
+ assert run_vers != "" , "No runtime version set."
150
+ if parse_version (run_vers ) >= parse_version ('12.0' ):
151
+ config .available_features .add ('concurrency_runtime' )
152
+ else :
153
+ # Non-Darwin platforms have a concurrency runtime
150
154
config .available_features .add ('concurrency_runtime' )
151
155
if run_os == 'Windows' :
152
156
config .available_features .add ('OS=windows' )
You can’t perform that action at this time.
0 commit comments