Skip to content

Releases: uber/hermetic_cc_toolchain

v2.1.0

02 Sep 23:55
Compare
Choose a tag to compare
v2.1.0 Pre-release
Pre-release

This is the first version where hermetic_cc_toolchain becomes a Bazel module.

What's Changed

New Contributors

Full Changelog: v2.0.0...v2.1.0

WORKSPACE snippet

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

HERMETIC_CC_TOOLCHAIN_VERSION = "v2.1.0"

http_archive(
    name = "hermetic_cc_toolchain",
    sha256 = "892b0dd7aa88c3504a8821e65c44fd22f32c16afab12d89e9942fff492720b37",
    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()

v2.0.0

30 May 11:21
Compare
Choose a tag to compare

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

v2.0.0-rc2

11 May 10:48
Compare
Choose a tag to compare

WORKSPACE snippet

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

HERMETIC_CC_TOOLCHAIN_VERSION = "v2.0.0-rc2"

http_archive(
    name = "hermetic_cc_toolchain",
    sha256 = "40dff82816735e631e8bd51ede3af1c4ed1ad4646928ffb6a0e53e228e55738c",
    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

New Contributors

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

v2.0.0-rc1

24 Apr 13:47
Compare
Choose a tag to compare

Top level

This is the first Release Candidate for hermetic_cc_toolchain v2. Highlights:

  1. Name change. It is now hermetic_cc_toolchain almost everywhere.
  2. The release process has changed; the http_archive flag will need to be adjusted. The released archive now skips internal tests, internal rules, and only contains what is necessary to use it by third-party projects.
  3. Remove fcntl64 and res_* hacks, as they have been fixed upstream.
  4. Add a workaround to a zig build-exe race in zig.
  5. Remove top-level folder rules/.
  6. Repository variable for Zig cache directory changed from BAZEL_ZIG_CC_CACHE_PREFIX to HERMETIC_CC_TOOLCHAIN_CACHE_PREFIX.
  7. Bump to Zig 0.11.0-dev.2619+bd3e248c7, see unofficial release note summary. Among other things, it bumps LLVM from 15.0.7 to 16.0.1.
  8. License change: roll back to MIT.

WORKSPACE snippet

HERMETIC_CC_TOOLCHAIN_VERSION = "v2.0.0-rc1"

http_archive(
    name = "hermetic_cc_toolchain",
    sha256 = "43a1b398f08109c4f03b9ba2b3914bd43d1fec0425f71b71f802bf3f78cee0c2",
    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")

zig_toolchains()

Detailed Changes

New Contributors

Full Changelog: v1.0.1...v2.0.0-rc1

v1.0.1

23 Mar 20:48
Compare
Choose a tag to compare
bazel-zig-cc v1.0.1

Changelog since v1.0.0:
- [Motiejus Jakštys] release: sort the RC versions correctly
- [Motiejus Jakštys] Re-license portions of the code to Apache 2.0
- [Motiejus Jakštys] zig sdk: use mirror.bazel.build
- [Motiejus Jakštys] ci/test: show how bad the artifact situation is
- [Motiejus Jakštys] launcher: remove --color=on
- [Motiejus Jakštys] ci/launcher: check fmt
- [Motiejus Jakštys] upgrade zig
- [Motiejus Jakštys] Merge branch 'motiejus_go1.20'
- [Motiejus Jakštys] launcher: support multi-for loop syntax
- [Motiejus Jakštys] wip go 1.20
- [Motiejus Jakštys] ci/launcher: colors
- [Motiejus Jakštys] ci/launcher: make it go faster
- [Motiejus Jakštys] CI: fix tests
- [Motiejus Jakštys] update README
- [Motiejus Jakštys] launcher: formatting