0.5.3
Release 0.5.3 (2017-07-27)
Baseline: 8851852
Cherry picks:
- 820a46a:
Automated rollback of commit
6d6e872. - ccfb2df:
Allow py_binary to be the executable of a Skylark action or any
SpawnAction on Windows. - 0653491:
Fix string representation for the Root class - cd159bc:
sandbox: Allow UNIX sockets on macOS even when block-network is
used. - ad73cba:
Fix python_stub_template.txt to be compatible with Python 2.4. - 9a63aff:
Create Windows ZIP release artifact using Bazel - 5e57663:
Automated rollback of commit
820a46a. - b6e29ca:
Use the correct function to generate the release notes - 0f3481b:
Include instead of <stdint.h>
Incompatible changes:
- deprecate
--python2_path
and--python3_path
flags for the
new--python_path
flag; introduce--python_top
flag for using
the newpy_runtime
rule. - The --output=location flag to 'bazel query' cannot be used with
query expressions that involve the 'buildfiles' or 'loadfiles'
operators. This also applies to 'genquery' rules. - Operators for equality, comparison, 'in' and 'not in' are no
longer associative, e.g. x < y < z is now a syntax error.
Before, it was parsed as: (x < y) < z. - In strings, octal sequences greater than \377 are now forbidden
(e.g. "\600"). Previously, Blaze had the same behavior as Python 2,
where "\450" == "\050". - Using tabulation for identation is now fobidden in .bzl files
load
is now a language keyword, it cannot be used as an
identifier- lvalues must have define at least one variable (i.e. we forbid
[] = f()
). - Fixed a bug whereby multiple load() statements could appear on
the same line - -extra_checks:off is no longer supported; use
-XepDisableAllChecks instead - java_common.java_toolchain_attr is removed. Depend on the
java_toolchain_alias() rule to accomplish the same thing. - cc_common.cc_toolchain_attr and java_common.java_runtime_attr are
not supported anymore and were replaced with the
cc_toolchain_alias() and java_runtime_alias() rules.
New features:
- Zipped LLVM profiles are now supported.
- LIPO maps to ThinLTO for LLVM builds.
- Change to handle LLVM FDO zipped profile contents correctly.
Important changes:
- Windows: bazel clean --expunge works
- First argument of 'load' should be a label. Path syntax is
deprecated (label should start with '//' or ':'). - Octal prefix '0' is deprecated in favor of '0o' (use 0o777
instead of 0777). - The extension_safe attribute of apple_binary no longer validates
transitive dependencies are compiled against extension_safe APIs. - Parentheses around the tuple are now mandatory in [a for b in c
if 1, 2] - Adjust the thresholds for --test_verbose_timeout_warnings so that
it can recommending timeout increases and won't recommend
timeouts that are too close to the actual timeout. - Iterating on a
depset
object is deprecated. If you need an
iterable, call the.to_list()
method first. - Bazel now uses tools from action_configs in Crosstool by default
(as oposed to using top level tools). - Incremental dexing errors on combination of --multidex=off and
either --main-dex-list or --minimal-main-dex. - When using the dictionary literal syntax, it is now an error to
have duplicated keys (e.g. {'ab': 3, 'ab': 5}). - New property on android_sdk: aapt2
Choose the version of aapt on android_binary - Add idl_preprocessed attribute to android_library, so that
preprocessed aidl files can be passed to android_library for
compiling - Bazel's remote_worker backend for remote execution supports
sandboxing on Linux now. Check
https://github.com/bazelbuild/bazel/blob/master/src/tools/remote_w
orker/README.md for details. - Allows flags that expand to take values.
- Make querying attributes formed by selector lists of list types
more efficient by no longer listing every possible combination of
attribute value but by more compactly storing the possible values
of the list. - Writing build events to a file is no longer experimental
- set --rewrite_calls_to_long_compare to false by default.
- ObjC and C++ coverage feature is unified under name 'coverage'
- Enable --incremental_dexing for Android builds by default. Note
that some dexopts are incompatible with incremental dexing,
including --force-jumbo. - Evaluation will soon use checked arithmetics and throw an error
instead of overflow/underflow. - Implicit iteration in the CROSSTOOL has been removed, use
explicit 'iterate_over' message. - Add option for Android specific grte_top
- Crosstool patches are only applied if the toolchain doesn't define
'no_legacy_features' feature. - 'platform_type' is now a mandatory attribute on apple_binary and
apple_static_library rules.
If this change breaks your build, feel free to add platform_type
= 'ios' to any apple_binary and apple_static_library
targets in your project, as this was the previous default
behavior. - Remove apple_watch2_extension build rule. Users should be using
the skylark watchos_application and watchos_extension rules.
https://github.com/bazelbuild/rules_apple has details. - Check stderr to detect if connected to a terminal. Deprecate
--isatty. - Commands that shut down the server (like "shutdown") now ensure
that the server process has terminated before the client process
terminates. - Remove apple_watch1_extension and apple_watch_extension_binary
rules. Users should be using the skylark watchos_application and
watchos_extension rules.
https://github.com/bazelbuild/rules_apple has details. - Windows: Wrapper-less CROSSTOOL becomes default now.
set USE_MSVC_WRAPPER=1 if you still want to use wrapper script.
Notice: Bazel installers contain binaries licensed under the GPLv2 with
Classpath exception. Those installers should always be redistributed along with
the source code.
Some versions of Bazel contain a bundled version of OpenJDK. The license of the
bundled OpenJDK and other open-source components can be displayed by running
the command bazel license
. The vendor and version information of the bundled
OpenJDK can be displayed by running the command bazel info java-runtime
.
The binaries and source-code of the bundled OpenJDK can be
downloaded from our mirror server.
Security: All our binaries are signed with our
public key 48457EE0.