mirror of https://github.com/bazelbuild/rules_cc
Update rules_cc to use the toolchain transition.
This is phase 2 of of the switch to toolchain transitions. See https://github.com/bazelbuild/bazel/issues/11584 for details. PiperOrigin-RevId: 334808134 Change-Id: Ie198b07359d4fd45368755c4cc223e397f0e8fb0
This commit is contained in:
parent
9ec8187d58
commit
f95239adde
|
@ -31,5 +31,6 @@ cc_flags_supplier = rule(
|
||||||
"_cc_toolchain": attr.label(default = Label("@bazel_tools//tools/cpp:current_cc_toolchain")),
|
"_cc_toolchain": attr.label(default = Label("@bazel_tools//tools/cpp:current_cc_toolchain")),
|
||||||
},
|
},
|
||||||
toolchains = ["@bazel_tools//tools/cpp:toolchain_type"],
|
toolchains = ["@bazel_tools//tools/cpp:toolchain_type"],
|
||||||
|
incompatible_use_toolchain_transition = True,
|
||||||
fragments = ["cpp"],
|
fragments = ["cpp"],
|
||||||
)
|
)
|
||||||
|
|
|
@ -91,4 +91,5 @@ my_c_archive = rule(
|
||||||
},
|
},
|
||||||
fragments = ["cpp"],
|
fragments = ["cpp"],
|
||||||
toolchains = ["@bazel_tools//tools/cpp:toolchain_type"],
|
toolchains = ["@bazel_tools//tools/cpp:toolchain_type"],
|
||||||
|
incompatible_use_toolchain_transition = True,
|
||||||
)
|
)
|
||||||
|
|
|
@ -77,5 +77,6 @@ my_c_compile = rule(
|
||||||
"_cc_toolchain": attr.label(default = Label("@bazel_tools//tools/cpp:current_cc_toolchain")),
|
"_cc_toolchain": attr.label(default = Label("@bazel_tools//tools/cpp:current_cc_toolchain")),
|
||||||
},
|
},
|
||||||
toolchains = ["@bazel_tools//tools/cpp:toolchain_type"],
|
toolchains = ["@bazel_tools//tools/cpp:toolchain_type"],
|
||||||
|
incompatible_use_toolchain_transition = True,
|
||||||
fragments = ["cpp"],
|
fragments = ["cpp"],
|
||||||
)
|
)
|
||||||
|
|
|
@ -29,4 +29,5 @@ write_cc_toolchain_cpu = rule(
|
||||||
"_cc_toolchain": attr.label(default = Label("@bazel_tools//tools/cpp:current_cc_toolchain")),
|
"_cc_toolchain": attr.label(default = Label("@bazel_tools//tools/cpp:current_cc_toolchain")),
|
||||||
},
|
},
|
||||||
toolchains = ["@bazel_tools//tools/cpp:toolchain_type"],
|
toolchains = ["@bazel_tools//tools/cpp:toolchain_type"],
|
||||||
|
incompatible_use_toolchain_transition = True,
|
||||||
)
|
)
|
||||||
|
|
Loading…
Reference in New Issue