Commit Graph

30 Commits

Author SHA1 Message Date
Yun Peng
71e640f242 Update Bazel version to 7.7.0.
This change updates the Bazel version used in TensorFlow, JAX, and XLA projects from 7.4.1 to 7.7.0 in `.bazelversion` files and build scripts.

PiperOrigin-RevId: 826075658
2025-10-30 10:27:38 -07:00
A. Unique TensorFlower
5c289f5ba2 Upgrade to Bazel 7.4.1 for TensorFlow
- 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: 731344894
2025-02-26 09:27:14 -08:00
A. Unique TensorFlower
a53139956c Changed Version of Bazel to version 6.5.0
PiperOrigin-RevId: 600868265
2024-01-23 13:13:23 -08:00
A. Unique TensorFlower
2cadb32cd8 Changed Version of Bazel to version 6.4.0
PiperOrigin-RevId: 587735745
2023-12-04 08:58:41 -08:00
A. Unique TensorFlower
7aeb9c8df5 Changed Version of Bazel to version 6.4.0
PiperOrigin-RevId: 586412544
2023-11-29 12:12:57 -08:00
A. Unique TensorFlower
8fd1d6770a Updates Bazel version from 5.3.0 to 6.1.0
PiperOrigin-RevId: 535635561
2023-05-26 09:21:32 -07:00
A. Unique TensorFlower
5363dedeaa Updates Bazel version of TensorFlow build scripts.
PiperOrigin-RevId: 502963284
2023-01-18 13:34:32 -08:00
A. Unique TensorFlower
cc96e4ef75 Implements pywrap_tensorflow_macro_opensource using cc_shared_library.
`dynamic_deps` is not used. Will be added in a separate change.

PiperOrigin-RevId: 470353185
2022-08-26 16:05:38 -07:00
A. Unique TensorFlower
42e425a9ea Implements pywrap_tensorflow_macro_opensource using cc_shared_library.
`dynamic_deps` is not used.

PiperOrigin-RevId: 465617454
2022-08-05 12:07:29 -07:00
A. Unique TensorFlower
b265fdbcce Implements pywrap_tensorflow_macro_opensource using cc_shared_library.
`dynamic_deps` is not used.

PiperOrigin-RevId: 465441376
2022-08-04 17:22:50 -07:00
Mihai Maruseac
3637a0245a Switch back to using released bazel
Testing to see if this fixes issues with cc_shared_library without breaking other builds.

See https://github.com/bazelbuild/bazel/commits/release-5.2.0, 4fd7983ca82fab536b8f9bb589610036b01d7490 is only commit on April 28th and shows as passing CI.

PiperOrigin-RevId: 445708526
2022-04-30 21:46:55 -07:00
Mihai Maruseac
22b8601de6 Use last commit on Bazel 5.2.0 release branch.
Testing to see if this fixes issues with cc_shared_library without breaking other builds.

See https://github.com/bazelbuild/bazel/commits/release-5.2.0, 4fd7983ca82fab536b8f9bb589610036b01d7490 is only commit on April 28th and shows as passing CI.

PiperOrigin-RevId: 445453119
2022-04-29 10:37:52 -07:00
Mihai Maruseac
a969f2bf91 Revert back to stable Bazel release.
Rolling releases break builds in our ecosystem, so we cannot use them.

See c39f19c52a (commitcomment-72479544)

Windows builds likely broken by switching to rolling release too, so testing.

Switching to rolling release did not solve any of the issues we are seeing with cc_shared_library implementation

PiperOrigin-RevId: 445438661
2022-04-29 09:34:53 -07:00
Mihai Maruseac
c39f19c52a Use rolling release for Bazel.
Since TF is in the progress of migrating to `cc_shared_library`, we are stress testing Bazel and uncovering a large number of bugs. We are in the state where some TF builds are broken with cascading failures and there is a long wait until a new LTS Bazel release. So, we're switching to rolling releases in an attempt to fix the builds.

However, if this causes more failures than it resolves, we will need to return back to stable releases.

PiperOrigin-RevId: 445259819
2022-04-28 15:14:55 -07:00
A. Unique TensorFlower
2e693e0c25 Upgrades the Bazel version from 5.1.0 to 5.1.1.
PiperOrigin-RevId: 440397509
2022-04-08 10:33:57 -07:00
A. Unique TensorFlower
d01c0796aa Upgrades Bazel to version 5.1.0.
PiperOrigin-RevId: 438673389
2022-03-31 15:19:20 -07:00
A. Unique TensorFlower
8871926b0a Updates TensorFlow Bazel version to the newly released version 5.0.0.
`.bazelversion` specifies the Bazel version that TensorFlow uses. This changelist updates the Bazel version from 4.2.2 to 5.0.0. It also updates the CI environment.

PiperOrigin-RevId: 424897733
Change-Id: Idd427ee8b1fdc8212211fb22c25989cb47350ab4
2022-01-28 10:24:17 -08:00
rui
9cd04f0ce7 build: bump bazel to 4.2.2 2021-12-08 22:10:07 -05:00
A. Unique TensorFlower
18a1dc0ba8 Upgrading Bazel to 4.2.1
PiperOrigin-RevId: 413661728
Change-Id: I9d66a199cea6a0754d321924f51421054107e577
2021-12-02 06:41:31 -08:00
A. Unique TensorFlower
1f19aea323 Updates TensorFlow's Bazel version to 4.0.0.
https://blog.bazel.build/2021/01/19/bazel-4-0.html

PiperOrigin-RevId: 413424007
Change-Id: Iab9246fd0985e27a255db9772d6c1a3c32b265b4
2021-12-01 08:37:52 -08:00
A. Unique TensorFlower
6fdb753000 Updates TensorFlow's Bazel version to 4.0.0.
https://blog.bazel.build/2021/01/19/bazel-4-0.html

PiperOrigin-RevId: 413219594
Change-Id: I7529703ef09099040a48042c896f88a584dc1d32
2021-11-30 12:53:11 -08:00
Mihai Maruseac
83ba6a37b2 Updating TensorFlow's bazel version 4.0.0 (the first LTS release).
https://blog.bazel.build/2021/01/19/bazel-4-0.html

PiperOrigin-RevId: 353139694
Change-Id: If2c4516b5d7fa59d032e9c74fb2a0716b2a4f618
2021-01-21 17:37:25 -08:00
Christian Sigg
0b47d35322 Updating TensorFlow's bazel version 4.0.0 (the first LTS release).
https://blog.bazel.build/2021/01/19/bazel-4-0.html

PiperOrigin-RevId: 353029642
Change-Id: I0a8650767f3a69428dcd37badf9a1b1c128d8baf
2021-01-21 09:15:40 -08:00
Mihai Maruseac
3e9fccb0cb Bump TF's minimum Bazel version to 3.7.2.
Bug fixed: https://github.com/bazelbuild/bazel/issues/3828

We need this because we are working on integrating TF with a different project that should remove the breakages caused by LLVM integration

PiperOrigin-RevId: 348886284
Change-Id: Iad539321f1ba7590e4ee77b93d67eb5401d9fec8
2020-12-23 21:33:56 -08:00
Jakob Buchgraber
d2b02580e6 Update TF bazel version requirements.
PiperOrigin-RevId: 315483879
Change-Id: I4be29ffa3c425f01c28dc8c95250209a2b0bada4
2020-06-09 08:04:07 -07:00
Gunhan Gulsoy
2f65c2468d Update TF bazel version requirements.
PiperOrigin-RevId: 306572687
Change-Id: I49448295cdd088eb114a7d518dd0db1822f2d7a6
2020-04-14 21:11:14 -07:00
Brian Zhao
daec6e0af0 Upgrading bazel version to 2.0.0
This is necessary to start using bazel's experimental cc_shared_library support.
This change is part of the refactoring described in https://github.com/tensorflow/community/pull/179

PiperOrigin-RevId: 294736824
Change-Id: I8d13c71545cf2f2edd47818b40fa413e3e9c3254
2020-02-12 13:12:01 -08:00
Brian Zhao
feb0c7b4bb Upgrading bazel version to 1.2.1
This is necessary to start using bazel's experimental cc_shared_library support.
This change is part of the refactoring described in https://github.com/tensorflow/community/pull/179

PiperOrigin-RevId: 288808507
Change-Id: Ie78fb4ff8dad128ebef280037cce4d3c4f42addc
2020-01-08 17:33:27 -08:00
A. Unique TensorFlower
a5f9bcd644 Upgrade Bazel to 1.1.0
PiperOrigin-RevId: 279959797
Change-Id: Ic5785033bc735d388f368aebee891160781fb193
2019-11-12 07:20:02 -08:00
A. Unique TensorFlower
8f7e0b65a5 Correctly place the .bazelversion file in the project root.
Follow up of cl/274686963

RELNOTES: If you're building Tensorflow from source, consider using bazelisk (https://github.com/bazelbuild/bazelisk) to automatically download and launch the correct Bazel version. Bazelisk reads the `.bazelversion` file at the root of the project directory.
PiperOrigin-RevId: 274840419
Change-Id: Idae8abf7014b0a593c36068603512545c0f3dfaf
2019-10-15 12:02:33 -07:00