Skip to content

Support using sccache when building the Swift toolchain for a stress tester run #639

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Feb 28, 2022
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
10 changes: 10 additions & 0 deletions run_sk_stress_test
Original file line number Diff line number Diff line change
Expand Up @@ -110,6 +110,12 @@ def parse_args():
'names from projects.json enclosed in {} will be '
'replaced with their value)',
default='')
parser.add_argument('--cmake-c-launcher',
metavar="PATH",
help='the absolute path to set CMAKE_C_COMPILER_LAUNCHER for build-script')
parser.add_argument('--cmake-cxx-launcher',
metavar='PATH',
help='the absolute path to set CMAKE_CXX_COMPILER_LAUNCHER for build-script')
return parser.parse_args()

def get_swiftc_path(workspace, args):
Expand Down Expand Up @@ -225,6 +231,10 @@ def build_swift_toolchain(workspace, args):
'--verbose-build',
'--reconfigure',
]
if args.cmake_c_launcher:
build_command += ['--cmake-c-launcher={}'.format(args.cmake_c_launcher)]
if args.cmake_cxx_launcher:
build_command += ['--cmake-cxx-launcher={}'.format(args.cmake_cxx_launcher)]
common.check_execute(build_command, timeout=9999999)


Expand Down