From 5ce5c947357261ae05354c8aa2235123d709e55e Mon Sep 17 00:00:00 2001 From: jax authors Date: Wed, 12 Feb 2025 06:50:19 -0800 Subject: [PATCH] Upgrade to Bazel 7.4.1 - Disabled Bzlmod for now before we start the migration - Disabled cc toolchain resolution for now - Fixed transition on `--modify_execution_info` due to /~https://github.com/bazelbuild/bazel/pull/16262 - Explicitly added `-Wl,-undefined,dynamic_lookup` as linkopt on macOS after /~https://github.com/bazelbuild/bazel/pull/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 --- .bazelrc | 6 ++++++ .bazelversion | 2 +- 2 files changed, 7 insertions(+), 1 deletion(-) diff --git a/.bazelrc b/.bazelrc index d7d98693e1e1..2a9bd85fe107 100644 --- a/.bazelrc +++ b/.bazelrc @@ -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 diff --git a/.bazelversion b/.bazelversion index f22d756da39d..815da58b7a9e 100644 --- a/.bazelversion +++ b/.bazelversion @@ -1 +1 @@ -6.5.0 +7.4.1