Skip to content

1.4.0

Compare
Choose a tag to compare
@github-actions github-actions released this 15 Feb 19:28
· 129 commits to master since this release
d106857

What's Changed

  • Move Apple CC toolchain from bazel into apple_support. This is a major change that will be required to switch to when moving to bazel 7.0. This toolchain is required for targeting any non-macOS Apple platform and has many Apple specific improvements if you're only building for macOS. You can migrate to this now and get some benefits over the builtin toolchain immediately, see the readme for setup instructions
  • Add __BAZEL_EXECUTION_ROOT__ replacement in the toolchain. This allows you to pass hermetic flags that reference the execution root in the case of flags like -fdebug-prefix-map that require absolute paths
  • Remove O1 from sanitizer feature flag defaults
  • Add coverage_prefix_map feature passing -fcoverage-prefix-map to ObjC/C* compiles by default. This eliminates absolute paths in binaries built for coverage
  • Improve bzlmod support, thanks @BalestraPatrick!

This release is compatible with 5.x LTS and bazel 6.x rolling releases.

bzlmod Snippet

bazel_dep(name = "apple_support", version = "1.4.0", repo_name = "build_bazel_apple_support")

Workspace Snippet

load("@bazel_tools//tools/build_defs/repo:http.bzl", "http_archive")

http_archive(
    name = "build_bazel_apple_support",
    sha256 = "33f0836185441c796d9d7d9d090204055f8e4e4b60370bd9f05e7b17b113d288",
    url = "https://github.com/bazelbuild/apple_support/releases/download/1.4.0/apple_support.1.4.0.tar.gz",
)

load(
    "@build_bazel_apple_support//lib:repositories.bzl",
    "apple_support_dependencies",
)

apple_support_dependencies()