@@ -1808,7 +1808,8 @@ if back_deployment_runtime is not None:
18081808
18091809concurrency_back_deploy_path = ''
18101810if run_vendor == 'apple' :
1811- if 'back_deploy_concurrency' in config .available_features :
1811+ if 'back_deploy_concurrency' in lit_config .params :
1812+ config .available_features .add ('back_deploy_concurrency' )
18121813 concurrency_back_deploy_path = os .path .join (os .path .dirname (swift_obj_root ), os .path .basename (swift_obj_root ).replace ("swift-" , "backdeployconcurrency-" ), 'lib' , 'swift-5.5' , run_os )
18131814
18141815def os_stdlib_paths ():
@@ -2097,6 +2098,13 @@ if 'concurrency' in config.available_features:
20972098 config .available_features .add ('concurrency_runtime' )
20982099 elif 'back_deploy_concurrency' in config .available_features and run_vers >= concurrency_back_deploy_version :
20992100 config .available_features .add ('concurrency_runtime' )
2101+ elif 'back_deploy_concurrency' in config .available_features :
2102+ print ('Disabled concurrency runtime tests because run version' ,
2103+ run_vers , "< back deploy version" ,
2104+ concurrency_back_deploy_version )
2105+ else :
2106+ print ('Disable concurrency runtime tests because run version' ,
2107+ run_vers , 'is too old and back-deployment is not enabled' )
21002108 else :
21012109 config .available_features .add ('concurrency_runtime' )
21022110
@@ -2121,7 +2129,7 @@ elif not kIsWindows:
21212129 if 'use_os_stdlib' in lit_config .params :
21222130 config .available_features .add ('use_os_stdlib' )
21232131
2124- target_stdlib_path = os_stdlib_paths () + [concurrency_back_deploy_path ] + target_stdlib_path
2132+ target_stdlib_path = [concurrency_back_deploy_path ] + os_stdlib_paths () + target_stdlib_path
21252133
21262134 lit_config .note ('Testing with the standard libraries in the OS' )
21272135 elif 'back_deployment_runtime' in lit_config .params :
0 commit comments