@@ -1242,48 +1242,6 @@ if sftp_server_path:
1242
1242
config .substitutions .append (('%sftp-server' ,
1243
1243
sftp_server_path or 'no-sftp-server' ))
1244
1244
1245
-
1246
- if not getattr (config , 'target_run_simple_swift' , None ):
1247
- config .target_run_simple_swift_parameterized = \
1248
- (SubstituteCaptures ('%%empty-directory(%%t) && '
1249
- '%s %s %%s \\ 1 -o %%t/a.out -module-name main && '
1250
- '%s %%t/a.out &&'
1251
- '%s %%t/a.out' % (config .target_build_swift ,
1252
- mcp_opt , config .target_codesign ,
1253
- config .target_run )))
1254
- config .target_run_simple_swift = (
1255
- '%%empty-directory(%%t) && '
1256
- '%s %s %%s -o %%t/a.out -module-name main && '
1257
- '%s %%t/a.out &&'
1258
- '%s %%t/a.out'
1259
- % (config .target_build_swift , mcp_opt , config .target_codesign , config .target_run ))
1260
- config .target_run_stdlib_swift = (
1261
- '%%empty-directory(%%t) && '
1262
- '%s %s %%s -o %%t/a.out -module-name main '
1263
- '-Xfrontend -disable-access-control && '
1264
- '%s %%t/a.out &&'
1265
- '%s %%t/a.out'
1266
- % (config .target_build_swift , mcp_opt , config .target_codesign , config .target_run ))
1267
- config .target_run_simple_swiftgyb = (
1268
- '%%empty-directory(%%t) && '
1269
- '%%gyb %%s -o %%t/main.swift && '
1270
- '%%line-directive %%t/main.swift -- '
1271
- '%s %s %%t/main.swift -o %%t/a.out -module-name main && '
1272
- '%s %%t/a.out &&'
1273
- '%%line-directive %%t/main.swift -- '
1274
- '%s %%t/a.out'
1275
- % (config .target_build_swift , mcp_opt , config .target_codesign , config .target_run ))
1276
- config .target_run_stdlib_swiftgyb = (
1277
- '%%empty-directory(%%t) && '
1278
- '%%gyb %%s -o %%t/main.swift && '
1279
- '%%line-directive %%t/main.swift -- '
1280
- '%s %s %%t/main.swift -o %%t/a.out -module-name main '
1281
- '-Xfrontend -disable-access-control && '
1282
- '%s %%t/a.out &&'
1283
- '%%line-directive %%t/main.swift -- '
1284
- '%s %%t/a.out'
1285
- % (config .target_build_swift , mcp_opt , config .target_codesign , config .target_run ))
1286
-
1287
1245
subst_target_jit_run = ""
1288
1246
if 'swift_interpreter' in config .available_features :
1289
1247
subst_target_jit_run = (
@@ -1373,6 +1331,47 @@ if not kIsWindows:
1373
1331
"LD_LIBRARY_PATH='{0}' " # Linux option
1374
1332
"SIMCTL_CHILD_DYLD_LIBRARY_PATH='{0}' " # Simulator option
1375
1333
.format (all_stdlib_path )) + config .target_run
1334
+
1335
+ if not getattr (config , 'target_run_simple_swift' , None ):
1336
+ config .target_run_simple_swift_parameterized = \
1337
+ (SubstituteCaptures ('%%empty-directory(%%t) && '
1338
+ '%s %s %%s \\ 1 -o %%t/a.out -module-name main && '
1339
+ '%s %%t/a.out &&'
1340
+ '%s %%t/a.out' % (config .target_build_swift ,
1341
+ mcp_opt , config .target_codesign ,
1342
+ config .target_run )))
1343
+ config .target_run_simple_swift = (
1344
+ '%%empty-directory(%%t) && '
1345
+ '%s %s %%s -o %%t/a.out -module-name main && '
1346
+ '%s %%t/a.out &&'
1347
+ '%s %%t/a.out'
1348
+ % (config .target_build_swift , mcp_opt , config .target_codesign , config .target_run ))
1349
+ config .target_run_stdlib_swift = (
1350
+ '%%empty-directory(%%t) && '
1351
+ '%s %s %%s -o %%t/a.out -module-name main '
1352
+ '-Xfrontend -disable-access-control && '
1353
+ '%s %%t/a.out &&'
1354
+ '%s %%t/a.out'
1355
+ % (config .target_build_swift , mcp_opt , config .target_codesign , config .target_run ))
1356
+ config .target_run_simple_swiftgyb = (
1357
+ '%%empty-directory(%%t) && '
1358
+ '%%gyb %%s -o %%t/main.swift && '
1359
+ '%%line-directive %%t/main.swift -- '
1360
+ '%s %s %%t/main.swift -o %%t/a.out -module-name main && '
1361
+ '%s %%t/a.out &&'
1362
+ '%%line-directive %%t/main.swift -- '
1363
+ '%s %%t/a.out'
1364
+ % (config .target_build_swift , mcp_opt , config .target_codesign , config .target_run ))
1365
+ config .target_run_stdlib_swiftgyb = (
1366
+ '%%empty-directory(%%t) && '
1367
+ '%%gyb %%s -o %%t/main.swift && '
1368
+ '%%line-directive %%t/main.swift -- '
1369
+ '%s %s %%t/main.swift -o %%t/a.out -module-name main '
1370
+ '-Xfrontend -disable-access-control && '
1371
+ '%s %%t/a.out &&'
1372
+ '%%line-directive %%t/main.swift -- '
1373
+ '%s %%t/a.out'
1374
+ % (config .target_build_swift , mcp_opt , config .target_codesign , config .target_run ))
1376
1375
1377
1376
#
1378
1377
# When changing substitutions, update docs/Testing.rst.
0 commit comments