@@ -1154,29 +1154,29 @@ config.substitutions.append(('%sftp-server',
1154
1154
if not getattr (config , 'target_run_simple_swift' , None ):
1155
1155
config .target_run_simple_swift_parameterized = \
1156
1156
(SubstituteCaptures ('%%empty-directory(%%t) && '
1157
- '%s %s %%s \\ 1 -o %%t/a.out -module-name main && '
1157
+ '%s %s %%s \\ 1 -o %%t/a.out -module-name main -Xfrontend -enable-sil-ownership && '
1158
1158
'%s %%t/a.out &&'
1159
1159
'%s %%t/a.out' % (config .target_build_swift ,
1160
1160
mcp_opt , config .target_codesign ,
1161
1161
config .target_run )))
1162
1162
config .target_run_simple_swift = (
1163
1163
'%%empty-directory(%%t) && '
1164
- '%s %s %%s -o %%t/a.out -module-name main && '
1164
+ '%s %s %%s -o %%t/a.out -module-name main -Xfrontend -enable-sil-ownership && '
1165
1165
'%s %%t/a.out &&'
1166
1166
'%s %%t/a.out'
1167
1167
% (config .target_build_swift , mcp_opt , config .target_codesign , config .target_run ))
1168
1168
config .target_run_stdlib_swift = (
1169
1169
'%%empty-directory(%%t) && '
1170
1170
'%s %s %%s -o %%t/a.out -module-name main '
1171
- '-Xfrontend -disable-access-control && '
1171
+ '-Xfrontend -disable-access-control -Xfrontend -enable-sil-ownership && '
1172
1172
'%s %%t/a.out &&'
1173
1173
'%s %%t/a.out'
1174
1174
% (config .target_build_swift , mcp_opt , config .target_codesign , config .target_run ))
1175
1175
config .target_run_simple_swiftgyb = (
1176
1176
'%%empty-directory(%%t) && '
1177
1177
'%%gyb %%s -o %%t/main.swift && '
1178
1178
'%%line-directive %%t/main.swift -- '
1179
- '%s %s %%t/main.swift -o %%t/a.out -module-name main && '
1179
+ '%s %s %%t/main.swift -o %%t/a.out -module-name main -Xfrontend -enable-sil-ownership && '
1180
1180
'%s %%t/a.out &&'
1181
1181
'%%line-directive %%t/main.swift -- '
1182
1182
'%s %%t/a.out'
@@ -1186,7 +1186,7 @@ if not getattr(config, 'target_run_simple_swift', None):
1186
1186
'%%gyb %%s -o %%t/main.swift && '
1187
1187
'%%line-directive %%t/main.swift -- '
1188
1188
'%s %s %%t/main.swift -o %%t/a.out -module-name main '
1189
- '-Xfrontend -disable-access-control && '
1189
+ '-Xfrontend -disable-access-control -Xfrontend -enable-sil-ownership && '
1190
1190
'%s %%t/a.out &&'
1191
1191
'%%line-directive %%t/main.swift -- '
1192
1192
'%s %%t/a.out'
0 commit comments