Skip to content

Commit 60cf466

Browse files
committed
[test] Use a per-test module cache for %target-swift-frontend on Linux.
This was always the intent, but whoever updated it for Apple platforms must have missed Linux. This *shouldn't* make a difference---because we should already be rebuilding the module cache whenever there's a Clang change---but it seems to be affecting things nonetheless.
1 parent 6a9298c commit 60cf466

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

test/lit.cfg

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -750,8 +750,8 @@ elif run_os in ['linux-gnu', 'linux-gnueabihf', 'freebsd', 'windows-cygnus', 'wi
750750
% (config.swiftc, config.variant_triple, resource_dir_opt, mcp_opt,
751751
config.swift_test_options, swift_execution_tests_extra_flags))
752752
config.target_swift_frontend = (
753-
'%s -frontend -target %s %s'
754-
% (config.swift, config.variant_triple, resource_dir_opt))
753+
'%s -frontend -target %s %s %s'
754+
% (config.swift, config.variant_triple, resource_dir_opt, mcp_opt))
755755
subst_target_swift_frontend_mock_sdk = config.target_swift_frontend
756756
subst_target_swift_frontend_mock_sdk_after = ""
757757
config.target_run = ''
@@ -817,9 +817,9 @@ elif run_os == 'linux-androideabi':
817817
android_linker_opt, resource_dir_opt, mcp_opt,
818818
config.swift_test_options, swift_execution_tests_extra_flags))
819819
config.target_swift_frontend = (
820-
'%s -frontend -target %s -sdk %s %s %s'
820+
'%s -frontend -target %s -sdk %s %s %s %s'
821821
% (config.swift, config.variant_triple, config.variant_sdk,
822-
android_linker_opt, resource_dir_opt))
822+
android_linker_opt, resource_dir_opt, mcp_opt))
823823
subst_target_swift_frontend_mock_sdk = config.target_swift_frontend
824824
subst_target_swift_frontend_mock_sdk_after = ""
825825
config.target_run = os.path.join(

0 commit comments

Comments
 (0)