In Bazel 7+ ObjcProvider no longer supports/provides the required linking attributes.
The migrations is detailed here: https://github.com/bazelbuild/bazel/issues/16939. In summary, as part of the migration, the ObjcProvider fields which previously provided linking related information are now now longer providing that info. In addition to this, a new flag: --incompatible_objc_linking_info_migration was added to further delete these link attrs from the ObjcProvider making it an error if the attr is used or set.
The goal of this PR is to address support for ObjcProvider migration and to instead use the correct linking information from CcInfo. This will support both Bazel 6/7+. It does not try to support --incompatible_objc_linking_info_migration as that requires more changes and should be a separate PR
In Bazel 7+
ObjcProvider
no longer supports/provides the required linking attributes.The migrations is detailed here: https://github.com/bazelbuild/bazel/issues/16939. In summary, as part of the migration, the
ObjcProvider
fields which previously provided linking related information are now now longer providing that info. In addition to this, a new flag:--incompatible_objc_linking_info_migration
was added to further delete these link attrs from theObjcProvider
making it an error if the attr is used or set.The goal of this PR is to address support for
ObjcProvider
migration and to instead use the correct linking information fromCcInfo
. This will support both Bazel 6/7+. It does not try to support--incompatible_objc_linking_info_migration
as that requires more changes and should be a separate PRDepends on:
848
847