Skip to content

0.13.0

Compare
Choose a tag to compare
@bazel-io bazel-io released this 30 Apr 08:58
· 26575 commits to master since this release

Release 0.13.0 (2018-04-30)

Baseline: fdee70e

Cherry picks:

  • f083e76:
    windows: GetOutputRoot() returns GetHomeDir()
  • fa36d2f:
    Automated rollback of commit
    4465dae.
  • 4abd2ba:
    Add error message on empty public resources
  • 2c95757:
    test-setup: remove leading "./" from test name

Incompatible changes:

  • Remove //tools/defaults:android_jar. Use
    @bazel_tools//tools/android:android_jar instead.

  • The flag --incompatible_show_all_print_messages is removed.
    Messages generated by print statements from any package will be
    displayed as
    DEBUG messages.

  • The --incompatible_disallow_uncalled_set_constructor flag is no
    longer available, the set constructoris completely removed from Skylark. Usedepset` instead.

  • Variables PACKAGE_NAME and REPOSITORY_NAME are deprecated in
    favor of
    functions package_name() and repository_name().

    https://docs.bazel.build/versions/master/skylark/lib/native.html#p
    ackage_name

  • BUILD_TIMESTAMP now contains seconds (and not milliseconds) since
    the epoch.

New features:

  • Strings have a new .elems() method, that provides an iterator on
    the characters of the string.
  • Now you can access three functions in windows_cc_configure.bzl by:
    load("@bazel_tools/tools/cpp:windows_cc_configure.bzl",
    "<function_name>")

Important changes:

  • CppRules: Unified action_configs for static libraries

  • Remove support for blaze dump --vfs. It is no longer meaningful.

  • Enable dependency checking for aar_import targets.

  • internal_bootstrap_hack has been deprecated and removed.

  • Properly handle tree artifacts on the link command line coming
    from a cc_library dependency.

  • Allow C++ features to make proto_library emit smaller C++ code

  • The 'j2objc' configuration fragment is exposed to Skylark.

  • Remove the default content of the global bazelrc.

  • In int() function, do not auto-detect base if input starts with
    '0'.

  • Users can now pass --experimental_shortened_obj_file_path=true to
    have a shorter object file path, the object file paths (and all
    other related paths) will be constructed as following:
    If there's no two or more source files with the same base name:

    /<target_package_path>/_objs/<target_name>/<source_base
    _name>.
    otherwise:

    /<target_package_path>/_objs/<target_name>/N/<source_ba
    se_name>.
    N = the file?s order among the source files with the same
    basename, starts from 0.

  • Move (c/cxx)opts from legacy_compile_flags to user_compile_flags

  • CppRules: Remove optional_*_flag fields from CROSSTOOL, they are
    not
    used, and could be expressed using features.

  • Introduce --incompatible_disable_objc_provider_resources to turn
    off all resource-related fields of the Objc provider.

  • Removed the statement of "What does Bazel support?" as it's
    limiting/misleading. Added supported host OSes to
    "multi-platform" paragraph.

  • android_library AAR output now contains proguard.txt

  • Bazel now displays information about remote cache hits and
    execution strategies used in its UI after every build and test,
    and adds a corresponding line "process stats" to BuildToolLogs in
    BEP.

  • Print correct build result for builds with --aspects flag.

  • android_binary.manifest_merger is no longer supported.

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.