@@ -511,6 +511,7 @@ if test_options:
511511
512512config .swift_frontend_test_options += os .environ .get ('SWIFT_FRONTEND_TEST_OPTIONS' , '' )
513513config .swift_driver_test_options += os .environ .get ('SWIFT_DRIVER_TEST_OPTIONS' , '' )
514+ config .swift_ide_test_test_options += os .environ .get ('SWIFT_IDE_TEST_TEST_OPTIONS' , '' )
514515config .sil_test_options = os .environ .get ('SIL_TEST_OPTIONS' , '' )
515516
516517config .clang_module_cache_path = make_path (config .swift_test_results_dir , "clang-module-cache" )
@@ -772,6 +773,7 @@ elif swift_test_mode == 'with_cxx_interop':
772773 config .available_features .add ("with_cxx_interop" )
773774 config .swift_frontend_test_options += ' -cxx-interoperability-mode=default'
774775 config .swift_driver_test_options += ' -cxx-interoperability-mode=default'
776+ config .swift_ide_test_test_options += ' -cxx-interoperability-mode=default'
775777else :
776778 lit_config .fatal ("Unknown test mode %r" % swift_test_mode )
777779
@@ -1357,11 +1359,13 @@ if run_vendor == 'apple':
13571359 "%s %s -sdk %r" %
13581360 (config .swift_api_extract , target_options , config .variant_sdk ))
13591361 config .target_swift_ide_test = (
1360- "%s %s %s %s" %
1361- (xcrun_prefix , config .swift_ide_test , target_options , ccp_opt ))
1362+ "%s %s %s %s %s" %
1363+ (xcrun_prefix , config .swift_ide_test , target_options , ccp_opt ,
1364+ config .swift_ide_test_test_options ))
13621365 subst_target_swift_ide_test_mock_sdk = (
1363- "%s %s %s %s" %
1364- (xcrun_prefix , config .swift_ide_test , target_options_for_mock_sdk , ccp_opt ))
1366+ "%s %s %s %s %s" %
1367+ (xcrun_prefix , config .swift_ide_test , target_options_for_mock_sdk , ccp_opt ,
1368+ config .swift_ide_test_test_options ))
13651369 subst_target_swift_ide_test_mock_sdk_after = \
13661370 target_options_for_mock_sdk_after
13671371 config .target_swiftc_driver = (
@@ -1497,9 +1501,11 @@ elif run_os in ['windows-msvc']:
14971501 config .variant_sdk , \
14981502 config .variant_triple ))
14991503 config .target_swift_ide_test = \
1500- ('%r -target %s %s %s %s' % (config .swift_ide_test , \
1501- config .variant_triple , \
1502- config .resource_dir_opt , mcp_opt , ccp_opt ))
1504+ ('%r -target %s %s %s %s %s' % (config .swift_ide_test , \
1505+ config .variant_triple , \
1506+ config .resource_dir_opt , mcp_opt , \
1507+ ccp_opt , \
1508+ config .swift_ide_test_test_options ))
15031509
15041510 subst_target_swift_ide_test_mock_sdk = config .target_swift_ide_test
15051511 subst_target_swift_ide_test_mock_sdk_after = ''
@@ -1632,9 +1638,9 @@ elif (run_os in ['linux-gnu', 'linux-gnueabihf', 'freebsd', 'openbsd', 'windows-
16321638 '%s -target %s -sdk %r' %
16331639 (config .swift_api_extract , config .variant_triple , config .variant_sdk ))
16341640 config .target_swift_ide_test = (
1635- '%s -target %s %s %s %s' %
1641+ '%s -target %s %s %s %s %s ' %
16361642 (config .swift_ide_test , config .variant_triple , config .resource_dir_opt ,
1637- mcp_opt , ccp_opt ))
1643+ mcp_opt , ccp_opt , config . swift_ide_test_test_options ))
16381644 subst_target_swift_ide_test_mock_sdk = config .target_swift_ide_test
16391645 subst_target_swift_ide_test_mock_sdk_after = ""
16401646 config .target_swiftc_driver = (
@@ -1747,7 +1753,8 @@ elif run_os == 'linux-androideabi' or run_os == 'linux-android':
17471753 'env' , 'SDKROOT={}' .format (shell_quote (config .variant_sdk )),
17481754 config .swift_ide_test ,
17491755 '-target' , config .variant_triple ,
1750- config .resource_dir_opt , mcp_opt , ccp_opt ])
1756+ config .resource_dir_opt , mcp_opt , ccp_opt ,
1757+ config .swift_ide_test_test_options ])
17511758 subst_target_swift_ide_test_mock_sdk = config .target_swift_ide_test
17521759 subst_target_swift_ide_test_mock_sdk_after = ""
17531760 config .target_swiftc_driver = ' ' .join ([
@@ -1819,9 +1826,9 @@ elif run_os == 'wasi':
18191826 '-target' , config .variant_triple ,
18201827 mcp_opt ])
18211828 config .target_swift_ide_test = (
1822- '%s -target %s %s %s %s' %
1829+ '%s -target %s %s %s %s %s ' %
18231830 (config .swift_ide_test , config .variant_triple , config .resource_dir_opt ,
1824- mcp_opt , ccp_opt ))
1831+ mcp_opt , ccp_opt , config . swift_ide_test_test_options ))
18251832 subst_target_swift_ide_test_mock_sdk = config .target_swift_ide_test
18261833 subst_target_swift_ide_test_mock_sdk_after = ""
18271834 config .target_swiftc_driver = (
0 commit comments