Skip to content

Commit

Permalink
Upgrade to Bazel 7.4.1
Browse files Browse the repository at this point in the history
- Disabled Bzlmod for now before we start the migration
- Disabled cc toolchain resolution for now
- Fixed transition on `--modify_execution_info` due to bazelbuild/bazel#16262
- Explicitly added `-Wl,-undefined,dynamic_lookup` as linkopt on macOS after bazelbuild/bazel#16414
- Set `-force_no_whole_archive` for host features
- Addressed Windows linking issue by adding `@com_googlesource_code_re2//:__subpackages__` in `exports_filter` of `//tensorflow/python:pywrap_tensorflow_internal`
- Removed `license` attribute on cc_shared_library
- Fixed license checks

PiperOrigin-RevId: 726036888
  • Loading branch information
Google-ML-Automation committed Feb 24, 2025
1 parent b0cfcb8 commit 5ce5c94
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 1 deletion.
6 changes: 6 additions & 0 deletions .bazelrc
Original file line number Diff line number Diff line change
@@ -1,6 +1,12 @@
# #############################################################################
# All default build options below. These apply to all build commands.
# #############################################################################
# TODO: Enable Bzlmod
common --noenable_bzlmod

# TODO: Migrate for /~https://github.com/bazelbuild/bazel/issues/7260
common --noincompatible_enable_cc_toolchain_resolution

# Make Bazel print out all options from rc files.
common --announce_rc

Expand Down
2 changes: 1 addition & 1 deletion .bazelversion
Original file line number Diff line number Diff line change
@@ -1 +1 @@
6.5.0
7.4.1

0 comments on commit 5ce5c94

Please sign in to comment.