@@ -576,7 +576,7 @@ config.target_runtime = "unknown"
576
576
swift_reflection_test_name = 'swift-reflection-test' + config .variant_suffix
577
577
578
578
def use_interpreter_for_simple_runs ():
579
- def make_simple_target_run (gyb = False , stdlib = False , swift3 = False , opt = "" ):
579
+ def make_simple_target_run (gyb = False , stdlib = False , opt = "" ):
580
580
result = ''
581
581
if gyb :
582
582
result += ('%empty-directory(%t) && '
@@ -592,22 +592,16 @@ def use_interpreter_for_simple_runs():
592
592
swift_execution_tests_extra_flags ))
593
593
if stdlib :
594
594
result += '-Xfrontend -disable-access-control '
595
- if swift3 :
596
- result += '-swift-version 3 '
597
595
if opt :
598
596
result += opt + ' '
599
597
if gyb :
600
598
result += '%t/main.swift'
601
599
else :
602
600
result += '%s'
603
601
return result
604
- config .target_run_stdlib_swiftgyb_swift3 = make_simple_target_run (gyb = True , stdlib = True , swift3 = True )
605
- config .target_run_stdlib_swiftgyb = make_simple_target_run (gyb = True , swift3 = True )
606
- config .target_run_simple_swiftgyb_swift3 = make_simple_target_run (gyb = True , swift3 = True )
602
+ config .target_run_stdlib_swiftgyb = make_simple_target_run (gyb = True )
607
603
config .target_run_simple_swiftgyb = make_simple_target_run (gyb = True )
608
- config .target_run_stdlib_swift_swift3 = make_simple_target_run (stdlib = True , swift3 = True )
609
604
config .target_run_stdlib_swift = make_simple_target_run (stdlib = True )
610
- config .target_run_simple_swift_swift3 = make_simple_target_run (swift3 = True )
611
605
config .target_run_simple_opt_Osize_swift = make_simple_target_run (opt = '-Osize' )
612
606
config .target_run_simple_opt_O_swift = make_simple_target_run (opt = '-O' )
613
607
config .target_run_simple_swift = make_simple_target_run ()
@@ -1105,26 +1099,13 @@ if not getattr(config, 'target_run_simple_swift', None):
1105
1099
'%s %%t/a.out &&'
1106
1100
'%s %%t/a.out'
1107
1101
% (config .target_build_swift , mcp_opt , config .target_codesign , config .target_run ))
1108
- config .target_run_simple_swift_swift3 = (
1109
- '%%empty-directory(%%t) && '
1110
- '%s %s %%s -o %%t/a.out -module-name main -swift-version 3 && '
1111
- '%s %%t/a.out &&'
1112
- '%s %%t/a.out'
1113
- % (config .target_build_swift , mcp_opt , config .target_codesign , config .target_run ))
1114
1102
config .target_run_stdlib_swift = (
1115
1103
'%%empty-directory(%%t) && '
1116
1104
'%s %s %%s -o %%t/a.out -module-name main '
1117
1105
'-Xfrontend -disable-access-control && '
1118
1106
'%s %%t/a.out &&'
1119
1107
'%s %%t/a.out'
1120
1108
% (config .target_build_swift , mcp_opt , config .target_codesign , config .target_run ))
1121
- config .target_run_stdlib_swift_swift3 = (
1122
- '%%empty-directory(%%t) && '
1123
- '%s %s %%s -o %%t/a.out -module-name main '
1124
- '-Xfrontend -disable-access-control -swift-version 3 && '
1125
- '%s %%t/a.out &&'
1126
- '%s %%t/a.out'
1127
- % (config .target_build_swift , mcp_opt , config .target_codesign , config .target_run ))
1128
1109
config .target_run_simple_swiftgyb = (
1129
1110
'%%empty-directory(%%t) && '
1130
1111
'%%gyb %%s -o %%t/main.swift && '
@@ -1134,15 +1115,6 @@ if not getattr(config, 'target_run_simple_swift', None):
1134
1115
'%%line-directive %%t/main.swift -- '
1135
1116
'%s %%t/a.out'
1136
1117
% (config .target_build_swift , mcp_opt , config .target_codesign , config .target_run ))
1137
- config .target_run_simple_swiftgyb_swift3 = (
1138
- '%%empty-directory(%%t) && '
1139
- '%%gyb %%s -o %%t/main.swift && '
1140
- '%%line-directive %%t/main.swift -- '
1141
- '%s %s %%t/main.swift -o %%t/a.out -module-name main -swift-version 3 && '
1142
- '%s %%t/a.out &&'
1143
- '%%line-directive %%t/main.swift -- '
1144
- '%s %%t/a.out'
1145
- % (config .target_build_swift , mcp_opt , config .target_codesign , config .target_run ))
1146
1118
config .target_run_stdlib_swiftgyb = (
1147
1119
'%%empty-directory(%%t) && '
1148
1120
'%%gyb %%s -o %%t/main.swift && '
@@ -1153,16 +1125,6 @@ if not getattr(config, 'target_run_simple_swift', None):
1153
1125
'%%line-directive %%t/main.swift -- '
1154
1126
'%s %%t/a.out'
1155
1127
% (config .target_build_swift , mcp_opt , config .target_codesign , config .target_run ))
1156
- config .target_run_stdlib_swiftgyb_swift3 = (
1157
- '%%empty-directory(%%t) && '
1158
- '%%gyb %%s -o %%t/main.swift && '
1159
- '%%line-directive %%t/main.swift -- '
1160
- '%s %s %%t/main.swift -o %%t/a.out -module-name main -swift-version 3 '
1161
- '-Xfrontend -disable-access-control && '
1162
- '%s %%t/a.out &&'
1163
- '%%line-directive %%t/main.swift -- '
1164
- '%s %%t/a.out'
1165
- % (config .target_build_swift , mcp_opt , config .target_codesign , config .target_run ))
1166
1128
1167
1129
subst_target_jit_run = ""
1168
1130
if 'swift_interpreter' in config .available_features :
@@ -1224,15 +1186,11 @@ config.substitutions.append(
1224
1186
config .substitutions .append (('%target-swift-frontend' , config .target_swift_frontend ))
1225
1187
1226
1188
1227
- config .substitutions .append (('%target-run-simple-swiftgyb-swift3' , config .target_run_simple_swiftgyb_swift3 ))
1228
1189
config .substitutions .append (('%target-run-simple-swiftgyb' , config .target_run_simple_swiftgyb ))
1229
- config .substitutions .append (('%target-run-simple-swift-swift3' , config .target_run_simple_swift_swift3 ))
1230
1190
config .substitutions .append (('%target-run-simple-swift' , config .target_run_simple_swift ))
1231
1191
config .substitutions .append (('%target-run-simple-opt-O-swift' , config .target_run_simple_opt_O_swift ))
1232
1192
config .substitutions .append (('%target-run-simple-opt-Osize-swift' , config .target_run_simple_opt_Osize_swift ))
1233
- config .substitutions .append (('%target-run-stdlib-swiftgyb-swift3' , config .target_run_stdlib_swiftgyb_swift3 ))
1234
1193
config .substitutions .append (('%target-run-stdlib-swiftgyb' , config .target_run_stdlib_swiftgyb ))
1235
- config .substitutions .append (('%target-run-stdlib-swift-swift3' , config .target_run_stdlib_swift_swift3 ))
1236
1194
config .substitutions .append (('%target-run-stdlib-swift' , config .target_run_stdlib_swift ))
1237
1195
config .substitutions .append (('%target-repl-run-simple-swift' , subst_target_repl_run_simple_swift ))
1238
1196
config .substitutions .append (('%target-run' , config .target_run ))
0 commit comments