Skip to content

v2.0.0

Compare
Choose a tag to compare
@motiejus motiejus released this 30 May 11:21
· 102 commits to main since this release

Top level

See https://github.com/uber/hermetic_cc_toolchain/releases/tag/v2.0.0-rc1 for changes since v1.0.1. If you are migrating from v1.0.1, this is worth a read.

Changelog since v2.0.0-rc1, which will be not repeated here: https://github.com/uber/hermetic_cc_toolchain/releases/tag/v2.0.0-rc2

Since v2.0.0-rc2:

  • New command: @zig_sdk//:tools/zig-wrapper. It is a "zig" wrapper that sets cache and lib directories, which users are encouraged to use instead of @zig_sdk//:zig, which is the plain Zig binary.
  • --strip is now respected.
  • Windows improvements:
    • bazel build ... now works on Windows for this repository.
    • add Windows-specific aliases to commands in @zig_sdk//:tools/*

Workspace snippet

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

HERMETIC_CC_TOOLCHAIN_VERSION = "v2.0.0"

http_archive(
    name = "hermetic_cc_toolchain",
    sha256 = "57f03a6c29793e8add7bd64186fc8066d23b5ffd06fe9cc6b0b8c499914d3a65",
    urls = [
        "https://mirror.bazel.build/github.com/uber/hermetic_cc_toolchain/releases/download/{0}/hermetic_cc_toolchain-{0}.tar.gz".format(HERMETIC_CC_TOOLCHAIN_VERSION),
        "https://github.com/uber/hermetic_cc_toolchain/releases/download/{0}/hermetic_cc_toolchain-{0}.tar.gz".format(HERMETIC_CC_TOOLCHAIN_VERSION),
    ],
)

load("@hermetic_cc_toolchain//toolchain:defs.bzl", zig_toolchains = "toolchains")

# Plain zig_toolchains() will pick reasonable defaults. See
# toolchain/defs.bzl:toolchains on how to change the Zig SDK version and
# download URL.
zig_toolchains()
------------------------------------------------------------------------

What's Changed from v2.0.0-rc2

Full Changelog: v2.0.0-rc2...v2.0.0