Bazel Blog

Bazel 1.2

We've just released Bazel 1.2!

Bazel 1.2 is intended to be backward-compatible with Bazel 1.0.

Please report any update problems.

Android

  • android_binary and android_library can now depend on targets providing CcInfos. See #9079 for details.
  • Experimental support for d8 dexers (both standalone and incremental) is now available for use using --nouse_workers_with_dexbuilder --define=android_incremental_dexing_tool=d8_dexbuilder. See #5150 for details.
  • Added Desugar support for FreezePeriod#<init>.

Query

  • Fixed an aquery bug with handling malformed queries that crashes Bazel.

macOS / iOS

  • Fixed a bug that broke caching for all builds on macOS.

C++

Platforms

  • --target_platform_fallback now also applies to exec / host configurations

Python

Documentation and UX

  • Bazel will now prevent idle sleep during test and build actions. Note that this does not affect screensavers and will not keep a laptop awake if the user forces sleep or closes the lid. This is purely to avoid idle sleeping when the user is not interacting with the device.
  • Added support for tracking suspensions (sleeps or SIGSTOP) on macOS.
  • BUILD/.bzl execution errors now cause execution to stop, even at top-level.
  • A list of log paths will now be provided in the build output.
  • Improved runfiles documentation.

Community updates

This release contains contributions from many people at Google, as well as Alex Kirchhoff, Andrew Suffield, Asaf Flescher, Austin Schuh, Benjamin Peterson, Bor Kae Hwang, Brian Richardson, Christy Norman, Clint Harrison, Dan Halperin, Daniel Martín, Dave Lee, David Neil, David Ostrovsky, George Gensure, Greg, Jacob Parker, Jakub Bujny, John Millikin, Keith Smiley, marcohu, Marwan Tammam, Mostyn Bramley-Moore, Peter Mounce, Ruben Das, Stepan Koltsov, Thi Don, Thi, Tomasz Strejczek, Walt Panfil, Yannic Bonenberger, Zackary Lowery.