Skip to content

Testing2#48

Closed
vkarampudi wants to merge 13 commits intogoogle:masterfrom
vkarampudi:testing2
Closed

Testing2#48
vkarampudi wants to merge 13 commits intogoogle:masterfrom
vkarampudi:testing2

Conversation

@vkarampudi
Copy link
Collaborator

No description provided.

vkarampudi and others added 13 commits February 5, 2026 05:21
This patch extends tensorflow.patch with changes to support:

1. Abseil backward compatibility:
   - Add absl_base_prefetch.h compatibility shim for older Abseil
     versions that lack absl/base/prefetch.h
   - Update prefetch includes across TensorFlow/TSL to use the shim
   - Add inline implementation of NullTerminatedMessage for older
     Abseil versions without StatusMessageAsCStr

2. Protobuf 4.x support:
   - Refactor cc_proto_library to use native proto_library and
     cc_proto_library rules instead of custom proto_gen
   - Implement custom _tsl_py_proto_library_rule to replace the
     built-in py_proto_library removed in Protobuf 4.x
   - Update proto library generation to depend on generated
     cc_proto_library targets

3. Build cleanup:
   - Remove unused absl/strings:string_view dependency
   - Update BUILD files to reflect new dependency structure

These changes enable building struct2tensor with older Abseil versions
while supporting Protobuf 4.x, improving compatibility across different
dependency versions.
Remove vendored google/protobuf/any.proto and obsolete third_party/README.md
Upgrade `struct2tensor` to Protobuf 4.25.6 with compatibility patches
Prefix cc_binary and cc_library with native. in struct2tensor.bzl
Apply rules_cc patch before adding struct2tensor local repository to ensure proper Bazel configuration.
@vkarampudi vkarampudi closed this Feb 5, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants