Skip to content

Commit a26d08e

Browse files
authored
Merge pull request swiftlang#639 from ahoppen/pr/run-sk-stress-test-sccache
Support using sccache when building the Swift toolchain for a stress tester run
2 parents 001d7b6 + 957aef0 commit a26d08e

File tree

1 file changed

+10
-0
lines changed

1 file changed

+10
-0
lines changed

run_sk_stress_test

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -110,6 +110,12 @@ def parse_args():
110110
'names from projects.json enclosed in {} will be '
111111
'replaced with their value)',
112112
default='')
113+
parser.add_argument('--cmake-c-launcher',
114+
metavar="PATH",
115+
help='the absolute path to set CMAKE_C_COMPILER_LAUNCHER for build-script')
116+
parser.add_argument('--cmake-cxx-launcher',
117+
metavar='PATH',
118+
help='the absolute path to set CMAKE_CXX_COMPILER_LAUNCHER for build-script')
113119
return parser.parse_args()
114120

115121
def get_swiftc_path(workspace, args):
@@ -225,6 +231,10 @@ def build_swift_toolchain(workspace, args):
225231
'--verbose-build',
226232
'--reconfigure',
227233
]
234+
if args.cmake_c_launcher:
235+
build_command += ['--cmake-c-launcher={}'.format(args.cmake_c_launcher)]
236+
if args.cmake_cxx_launcher:
237+
build_command += ['--cmake-cxx-launcher={}'.format(args.cmake_cxx_launcher)]
228238
common.check_execute(build_command, timeout=9999999)
229239

230240

0 commit comments

Comments
 (0)