chore: fix some typos (#13726)

Signed-off-by: carrychair <linghuchong404@gmail.com>
This commit is contained in:
carrychair 2024-03-22 05:00:21 +08:00 committed by GitHub
parent f85ddfe265
commit cade09ba0b
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -34,19 +34,19 @@ def cc_autoconf_toolchains_impl(repository_ctx):
else: else:
repository_ctx.file("BUILD", "# C++ toolchain autoconfiguration was disabled by BAZEL_DO_NOT_DETECT_CPP_TOOLCHAIN env variable.") repository_ctx.file("BUILD", "# C++ toolchain autoconfiguration was disabled by BAZEL_DO_NOT_DETECT_CPP_TOOLCHAIN env variable.")
def cc_autoconf_impl(repository_ctx, overriden_tools = dict()): def cc_autoconf_impl(repository_ctx, overridden_tools = dict()):
"""Generate BUILD file with 'cc_toolchain' targets for the local host C++ toolchain. """Generate BUILD file with 'cc_toolchain' targets for the local host C++ toolchain.
Args: Args:
repository_ctx: repository context repository_ctx: repository context
overriden_tools: dict of tool paths to use instead of autoconfigured tools overridden_tools: dict of tool paths to use instead of autoconfigured tools
""" """
cpu_value = get_cpu_value(repository_ctx) cpu_value = get_cpu_value(repository_ctx)
if cpu_value.startswith("darwin"): if cpu_value.startswith("darwin"):
print("Configuring local C++ toolchain for Darwin. This is non-hermetic and builds may " + print("Configuring local C++ toolchain for Darwin. This is non-hermetic and builds may " +
"not be reproducible. Consider building on linux for a hermetic build.") "not be reproducible. Consider building on linux for a hermetic build.")
configure_unix_toolchain(repository_ctx, cpu_value, overriden_tools) configure_unix_toolchain(repository_ctx, cpu_value, overridden_tools)
else: else:
paths = resolve_labels(repository_ctx, [ paths = resolve_labels(repository_ctx, [
"@bazel_tools//tools/cpp:BUILD.empty.tpl", "@bazel_tools//tools/cpp:BUILD.empty.tpl",