Skip to content

Commit ba6e6d5

Browse files
committed
Support using sccache when building the Swift toolchain for a stress tester run
1 parent 726fad8 commit ba6e6d5

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

run_sk_stress_test

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -110,6 +110,9 @@ def parse_args():
110110
'names from projects.json enclosed in {} will be '
111111
'replaced with their value)',
112112
default='')
113+
parser.add_argument('--sccache',
114+
help='Use sccache when building the Swift toolchain',
115+
action='store_true')
113116
return parser.parse_args()
114117

115118
def get_swiftc_path(workspace, args):
@@ -225,6 +228,8 @@ def build_swift_toolchain(workspace, args):
225228
'--verbose-build',
226229
'--reconfigure',
227230
]
231+
if args.sccache:
232+
build_command.append('--sccache')
228233
common.check_execute(build_command, timeout=9999999)
229234

230235

0 commit comments

Comments
 (0)