Skip to content

Commit

Permalink
Bazel 1.2 announcement (#209)
Browse files Browse the repository at this point in the history
  • Loading branch information
philwo authored Nov 21, 2019
1 parent 546903c commit ac66b53
Showing 1 changed file with 62 additions and 0 deletions.
62 changes: 62 additions & 0 deletions _posts/2019-11-20-bazel-1.2.0.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,62 @@
---
layout: posts
title: "Bazel 1.2"
authors:
- philwo
---

We've just released [Bazel 1.2](https://github.com/bazelbuild/bazel/releases/tag/1.2.0)!

Bazel 1.2 is intended to be [backward-compatible](https://docs.bazel.build/versions/master/backward-compatibility.html) with Bazel 1.0.

Please [report](https://github.com/bazelbuild/bazel/issues/new) any update problems.

## Android

* `android_binary` and `android_library` can now depend on targets providing `CcInfos`. See [#9079](https://github.com/bazelbuild/bazel/issues/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](https://github.com/bazelbuild/bazel/issues/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](https://github.com/bazelbuild/bazel/issues/10184) that broke caching for all builds on macOS.

## C++

* The `cc_common.{compile,link}` APIs can now be used without passing the `--experimental_cc_skylark_api_enabled_packages` flag.
* Incompatible flag [`--incompatible_validate_top_level_header_inclusions`](https://github.com/bazelbuild/bazel/issues/10047) has been added.
* Fields on `CcLinkingOutputs` are now listed.

## Platforms

* `--target_platform_fallback` now also applies to exec / host configurations

## Python

* Added flag [`--incompatible_default_to_explicit_init_py`](https://github.com/bazelbuild/bazel/issues/10076) to switch the default value of [`legacy_create_init`](https://docs.bazel.build/versions/master/be/python.html#py_binary.legacy_create_init) to False. With this flag enabled, your `py_binary` and `py_test` targets will no longer behave as if empty `__init__.py` files were implicitly littered in your runfiles tree.

## 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](https://docs.bazel.build/versions/master/skylark/rules.html#runfiles).

## Community updates

* Ignacio Le Fluk explained how to do [Fullstack development with Bazel](https://dev.to/thisdotmedia/fullstack-development-with-bazel-16ic), using Javascript and Typescript.

* Sergio Fernández wrote about [Building Faster in iOS with Bazel](https://medium.com/@fdzsergio/building-faster-in-ios-with-bazel-448a3074e73).

* Ahir Reddy and Li Haoyi did a presentation at Scale By The Bay 2019: [Speedy Scala Builds at Databricks](https://www.youtube.com/watch?v=fs-TkRkFgDI).

* Nathan Froyd is evaluating Bazel for building Firefox ([part 1](https://blog.mozilla.org/nfroyd/2019/10/28/evaluating-bazel-for-building-firefox-part-1/), [part 2](https://blog.mozilla.org/nfroyd/2019/11/01/evaluating-bazel-for-building-firefox-part-2/)).

* Oasis Digital has announced new 3-day trainings [Building with Bazel](https://oasisdigital.com/class/bazel).

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.

0 comments on commit ac66b53

Please sign in to comment.