Release 0.12.0rc1 (2018-03-14)
Baseline: b33e5afa313322a7048044c44d854cbb666b988e
Incompatible changes:
- The order of dict-valued attributes is now the order in the BUILD file (or in the Skylark dict they were created from) and not lexicographically sorted.
New features:
- python,runfiles: You can now depend on
@bazel_tools//tools/runfiles:py-runfiles
to get a platform-independent runfiles library for Python. See DocString of https://github.com/bazelbuild/bazel/blob/master/src/tools/runfiles /runfiles.py for usage information.
- The new "--direct_run" flag on "blaze run" lets one run interactive binaries.
- "blaze run --direct_run" with tests now gives the test an approximation of the official test environment.
- The new "--local_tmp_root=" flag allows specifying the temp directory for locally executed actions.
- "blaze run --direct_run" now exports the BUILD_{WORKSPACE,WORKING}_DIRECTORY variables to tell the binary about the cwd of the client and the workspace root.
- The new "--local_tmp_root=" flag allows specifying the temp directory for locally executed actions.
- New Android device test rule: android_instrumentation_test.
- Add option to dump the action graph to a file: 'bazel dump --action_graph=/path/to/file'.
- Pass
tags
from java_import_external
rule to the generated java_import
rule.
- blaze query: use --proto:output_rule_attrs to filter for given attributes
- Added Android NDK r15 support, including compatibility with Unified Headers.
- Adds --ltobackendopt and --per_file_ltobackendopt for passing options to ThinLTO LTO backend compile actions only.
Important changes:
- Fix how libraries to link is specified to archiver actions.
- Fix how libraries_to_link are expanded in the archiver command line.
- stop using --no-locals in android coverage builds
- apple_binary can now generate dSYM outputs with the --apple_generate_dsym=true flag.
- Fix FDO_STAMP_MACRO to only be set when fdoBuildStamp is not null.
- Improved clarity of warning message for unsupported NDK revisions.
- Add lint check for discouraging glob(["**/*.java"])
- unifly lint glob(["**/*.java"]) message
- Removed flags
--incompatible_checked_arithmetic
, --incompatible_dict_literal_has_no_duplicates
, --incompatible_disallow_keyword_only_args
, and --incompatible_comprehension_variables_do_not_leak
.
- Add "proto_source_root" flag to proto_library.
- Updated default android_cpu value to armeabi-v7a
- In skylark, print(target) now shows the provider keys of a target, as debug information.
- The native http_archive rule is deprecated. Use the Skylark version available via load("@bazel_tools//tools/build_defs/repo:http.bzl", "http_archive") instead.
- flaky_test_attempts supports the regex@attempts syntax, like runs_per_test.
- Fixed include paths for NDK r13+ llvm-libc++ headers to
ndk/sources/cxx-stl/llvm-libc++/include
and ndk/sources/cxx-stl/llvm-libc++abi/include
- --config flags now expand in place by default.
- aar_import now sets java.transitive_exports.
- repository_cache is no longer experimental and enabled by default.
- BAZEL_LINKOPTS is now consulted when autoconfiguring c++ toolchain
- The native git_repository rule is deprecated. Use the Skylark version available via load("@bazel_tools//tools/build_defs/repo:git.bzl", "git_repository") instead.
- Removed flag
--incompatible_load_argument_is_label
.
- CcToolchain: Introduced action_config for "c++-link-transitive-dynamic-library"
- Use bazel dump --action_graph=/path/to/action.proto --action_graph:targets://foo:bar,//foo:foo to filter for certain targets in the action graph dump.
- Added Android NDK r16 support. Use --cxxopt='-std=c++11
compile with the C++11 standard, and
--android_crosstool_top=@androidndk//:toolchain-libcppto use the
libc++` STL.
- Add a --build_event_publish_all_actions flag to allow all actions to be published via the BEP.
- C++: Introduced --experimental_drop_fully_static_linking_mode
- Removed cc_inc_library, please use cc_library instead
- CppRules: cc_binary/cc_test now enable 'static_linking_mode' or 'dynamic_linking_mode'.
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.
Index of files