Skip to content

Commit a2f7a25

Browse files
committed
lit: move -ignore-module-source-info flag to swift_test_options
1 parent c8e18d4 commit a2f7a25

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

test/lit.cfg

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -351,7 +351,10 @@ if test_options:
351351
config.swift_test_options += test_options
352352

353353
config.swift_frontend_test_options = os.environ.get('SWIFT_FRONTEND_TEST_OPTIONS', '')
354+
config.swift_frontend_test_options += ' -ignore-module-source-info'
354355
config.swift_driver_test_options = os.environ.get('SWIFT_DRIVER_TEST_OPTIONS', '')
356+
config.swift_driver_test_options += ' -Xfrontend'
357+
config.swift_driver_test_options += ' -ignore-module-source-info'
355358
config.sil_test_options = os.environ.get('SIL_TEST_OPTIONS', '')
356359

357360
clang_module_cache_path = make_path(config.swift_test_results_dir, "clang-module-cache")
@@ -878,7 +881,7 @@ if run_vendor == 'apple':
878881
config.target_sdk_name = xcrun_sdk_name
879882
config.target_ld = "%s ld -L%r" % (xcrun_prefix, make_path(test_resource_dir, config.target_sdk_name))
880883
config.target_swift_frontend = (
881-
"%s -frontend %s -sdk %r %s %s -ignore-module-source-info" %
884+
"%s -frontend %s -sdk %r %s %s" %
882885
(config.swiftc, target_options, config.variant_sdk,
883886
config.swift_test_options, config.swift_frontend_test_options))
884887
subst_target_swift_frontend_mock_sdk = (

0 commit comments

Comments
 (0)