You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
This turns off legacy Starlark access to cc toolchain information via the ctx.fragments.cpp fragment. Instead of declaring dependency on the ctx.fragments.cpp using the fragments attribute declare a dependency on the @bazel_tools//tools/cpp:current_cc_toolchain via implicit attribute named _cc_toolchain (see example in the full migration docs). Use find_cpp_toolchain from @bazel_tools//tools/cpp:toolchain_utils.bzl to get the current C++ toolchain in the rule implementation.
I was going through the docs following the example to migrate to the new recommended way. I kept running into an issue, and finally noticed that --incompatible_disable_legacy_flags_cc_toolchain_api breaks the example.
It's confusing to me that the example solution to one deprecation is also deprecated
Please change the example to use the non-deprecated method or add a note that the other deprecation should also be considered
Activity
Flip --incompatible_disable_legacy_cpp_toolchain_skylark_api incompat…
Automated rollback of commit 8d1a324.
Flip --incompatible_disable_legacy_cpp_toolchain_skylark_api incompat…
Migrate rules_rust to the new Starlark C++ toolchain API
Migrate rules_rust to the new Starlark C++ toolchain API (#133)
hlopko commentedon Oct 23, 2018
Flag is flipped, therefore closing the issue.
Release 0.19.0 (2018-10-29)
Release 0.19.0 (2018-10-29)
sgreenstein commentedon Nov 2, 2018
I was going through the docs following the example to migrate to the new recommended way. I kept running into an issue, and finally noticed that --incompatible_disable_legacy_flags_cc_toolchain_api breaks the example.
It's confusing to me that the example solution to one deprecation is also deprecated
Please change the example to use the non-deprecated method or add a note that the other deprecation should also be considered
Remove legacy C++ toolchain Starlark APIs
hlopko commentedon Nov 28, 2018
Hi Seth,
sorry for the trouble, I'll submit a fix shortly.