mirror of https://github.com/bazelbuild/rules_cc
Fix cc toolchain autodetection to not error when BAZEL_DO_NOT_DETECT_CPP_TOOLCHAIN is set.
Copies the fix from bazelbuild/bazel#10440. PiperOrigin-RevId: 287988047 Change-Id: I7a6bf88cf13996022c43bde872ff7874b60b04fb
This commit is contained in:
parent
cd7e8a690c
commit
7e650b11fe
|
@ -101,7 +101,7 @@ def cc_autoconf_impl(repository_ctx, overriden_tools = dict()):
|
|||
"@rules_cc//cc/private/toolchain:empty_cc_toolchain_config.bzl",
|
||||
])
|
||||
repository_ctx.symlink(paths["@rules_cc//cc/private/toolchain:empty_cc_toolchain_config.bzl"], "cc_toolchain_config.bzl")
|
||||
repository_ctx.symlink(paths("@rules_cc//cc/private/toolchain:BUILD.empty"), "BUILD")
|
||||
repository_ctx.symlink(paths["@rules_cc//cc/private/toolchain:BUILD.empty"], "BUILD")
|
||||
elif cpu_value == "freebsd":
|
||||
paths = resolve_labels(repository_ctx, [
|
||||
"@rules_cc//cc/private/toolchain:BUILD.static.freebsd",
|
||||
|
|
Loading…
Reference in New Issue