From ffecf7324332af0d0dfa67936007dd14ee5a3ab8 Mon Sep 17 00:00:00 2001 From: Keith Smiley Date: Thu, 16 Feb 2023 11:33:50 -0800 Subject: [PATCH] Increase timeouts for macOS toolchain setup (#203) This switches all macOS toolchain setup compiles and executes to use the default timeout of 600s. This should help avoid issues on GitHub actions where these timeout and cause build failures. The common case shouldn't really be affected. https://github.com/bazelbuild/bazel/issues/17437 --- crosstool/osx_cc_configure.bzl | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/crosstool/osx_cc_configure.bzl b/crosstool/osx_cc_configure.bzl index 607d9f4..5566a2c 100644 --- a/crosstool/osx_cc_configure.bzl +++ b/crosstool/osx_cc_configure.bzl @@ -64,7 +64,7 @@ def _compile_cc_file_single_arch(repository_ctx, src_name, out_name): "-o", out_name, src_name, - ], 60) + ]) if (xcrun_result.return_code != 0): error_msg = ( "return code {code}, stderr: {err}, stdout: {out}" @@ -100,7 +100,7 @@ def _compile_cc_file(repository_ctx, src_name, out_name): "-o", out_name, src_name, - ], 60) + ]) if xcrun_result.return_code == 0: xcrun_result = repository_ctx.execute([ @@ -113,7 +113,7 @@ def _compile_cc_file(repository_ctx, src_name, out_name): "--sign", "-", out_name, - ], 60) + ]) if xcrun_result.return_code != 0: error_msg = ( "codesign return code {code}, stderr: {err}, stdout: {out}"