@@ -1523,22 +1523,6 @@ rth_flags = ''
1523
1523
if swift_execution_tests_extra_flags :
1524
1524
rth_flags = swift_execution_tests_extra_flags + ' -wmo'
1525
1525
1526
- # FIXME: why can we not use %rth and have that be expanded out?
1527
- config .target_resilience_test = (
1528
- '%r %s --target-build-swift "%s" --target-run "%s" --t %%t --S %%S '
1529
- '--s %%s --lib-prefix "%s" --lib-suffix "%s" --target-codesign "%s" '
1530
- '--additional-compile-flags "%s" --triple "%s"'
1531
- % (sys .executable , config .rth , config .target_build_swift ,
1532
- config .target_run , config .target_shared_library_prefix ,
1533
- config .target_shared_library_suffix , config .target_codesign ,
1534
- rth_flags , config .variant_triple ))
1535
-
1536
- # FIXME: Get symbol diffing working with binutils nm as well. The flags are slightly
1537
- # different.
1538
- if platform .system () != 'Darwin' or swift_test_mode == 'optimize_none_with_implicit_dynamic' :
1539
- config .target_resilience_test = ('%s --no-symbol-diff' %
1540
- config .target_resilience_test )
1541
-
1542
1526
platform_module_dir = make_path (test_resource_dir , config .target_sdk_name )
1543
1527
if run_vendor != 'apple' :
1544
1528
platform_module_dir = make_path (platform_module_dir , run_cpu )
@@ -1639,6 +1623,22 @@ if not getattr(config, 'target_run_simple_swift', None):
1639
1623
'%s %%t/a.out'
1640
1624
% (config .target_build_swift , mcp_opt , config .target_codesign , config .target_run ))
1641
1625
1626
+ # FIXME: why can we not use %rth and have that be expanded out?
1627
+ config .target_resilience_test = (
1628
+ '%r %s --target-build-swift "%s" --target-run "%s" --t %%t --S %%S '
1629
+ '--s %%s --lib-prefix "%s" --lib-suffix "%s" --target-codesign "%s" '
1630
+ '--additional-compile-flags "%s" --triple "%s"'
1631
+ % (sys .executable , config .rth , config .target_build_swift ,
1632
+ config .target_run , config .target_shared_library_prefix ,
1633
+ config .target_shared_library_suffix , config .target_codesign ,
1634
+ rth_flags , config .variant_triple ))
1635
+
1636
+ # FIXME: Get symbol diffing working with binutils nm as well. The flags are slightly
1637
+ # different.
1638
+ if platform .system () != 'Darwin' or swift_test_mode == 'optimize_none_with_implicit_dynamic' :
1639
+ config .target_resilience_test = ('%s --no-symbol-diff' %
1640
+ config .target_resilience_test )
1641
+
1642
1642
#
1643
1643
# When changing substitutions, update docs/Testing.md.
1644
1644
#
0 commit comments