Releases: uber/hermetic_cc_toolchain
v4.0.1
v4.0.0
WORKSPACE boilerplate
load("@bazel_tools//tools/build_defs/repo:http.bzl", "http_archive")
HERMETIC_CC_TOOLCHAIN_VERSION = "v4.0.0"
http_archive(
name = "hermetic_cc_toolchain",
sha256 = "fa481fdaf058e54a866ab61245685f6b7a883596dcfddaf2fa67b70fd0d171c4",
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
This release includes a breaking change (#207), which moves all @zig_sdk-{os}-{arch} to @zig_sdk, allowing people to register toolchains for all execution platforms with:
register_toolchains(
"@zig_sdk//toolchain/...",
"@zig_sdk//libc_aware/toolchain/...",
)Other changes includes
- expose linker by @manuelnaranjo in #211
- fix: dev_dependency by @birunts in #212
New Contributors
- @manuelnaranjo made their first contribution in #211
- @birunts made their first contribution in #207
Full Changelog: v3.2.0...v4.0.0
v3.2.0
WORKSPACE boilerplate
load("@bazel_tools//tools/build_defs/repo:http.bzl", "http_archive")
HERMETIC_CC_TOOLCHAIN_VERSION = "v3.2.0"
http_archive(
name = "hermetic_cc_toolchain",
sha256 = "f82311e2cb758f2cff2567be16cf8c06ce99795e514cc94c17932b74d32c1f36",
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
- Add syntax highlighting to code blocks in README.md by @ofek in #197
- feat: create cc_toolchains for multiple exec platforms by @BrandonThomasJonesARM in #196
- feat: use .wasm artifact name extension by @zaucy in #185
- Mark extension as reproducible by @cerisier in #206
- fix: provide cc_toolchain artifacts required for assembly actions by @cerisier in #208
New Contributors
- @ofek made their first contribution in #197
- @BrandonThomasJonesARM made their first contribution in #196
- @zaucy made their first contribution in #185
- @cerisier made their first contribution in #206
Full Changelog: v3.1.1...v3.2.0
v3.1.1
What's Changed
- Update bzlmod example to use released version by @linzhp in #180
- Mark toolchains registered in our MODULE.bazel as a dev dependency by @jvolkman in #190
WORKSPACE boilerplate
load("@bazel_tools//tools/build_defs/repo:http.bzl", "http_archive")
HERMETIC_CC_TOOLCHAIN_VERSION = "v3.1.1"
http_archive(
name = "hermetic_cc_toolchain",
sha256 = "907745bf91555f77e8234c0b953371e6cac5ba715d1cf12ff641496dd1bce9d1",
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()Full Changelog: v3.1.0...v3.1.1
v3.1.0
What's Changed
- releaser: fix windows by @motiejus in #170
- Fix README.md typo by @derekperkins in #174
- Upgrade zig to 0.12.0 by @linzhp in #176
New Contributors
- @derekperkins made their first contribution in #174
WORKSPACE boilerplate
load("@bazel_tools//tools/build_defs/repo:http.bzl", "http_archive")
HERMETIC_CC_TOOLCHAIN_VERSION = "v3.1.0"
http_archive(
name = "hermetic_cc_toolchain",
sha256 = "df091afc25d73b0948ed371d3d61beef29447f690508e02bc24e7001ccc12d38",
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()
Full Changelog: v3.0.1...v3.1.0
v3.0.1
What's Changed
- Add wasm32-wasi-musl target by @rockwotj in #165
- bump zig to 0.12.0-dev.2824+0b7af2563 by @motiejus in #168
Incompatible changes
Zig cache path in MacOS is now in /var/tmp/zig-cache instead of /tmp/zig-cache, Windows has changed the default path too. Update your project's .bazelrc to make it work for all platforms:
common --enable_platform_specific_config
build:linux --sandbox_add_mount_pair=/tmp
build:macos --sandbox_add_mount_pair=/var/tmp
build:windows --sandbox_add_mount_pair=C:\Temp
WORKSPACE boilerplate
load("@bazel_tools//tools/build_defs/repo:http.bzl", "http_archive")
HERMETIC_CC_TOOLCHAIN_VERSION = "v3.0.1"
http_archive(
name = "hermetic_cc_toolchain",
sha256 = "3bc6ec127622fdceb4129cb06b6f7ab098c4d539124dde96a6318e7c32a53f7a",
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()
New Contributors
Full Changelog: v3.0.0...v3.0.1
v3.0.0
Word of caution
This release is affected by ziglang/zig#19026 ,which is a pretty serious bug. Avoid using this release until we release 3.0.1.
What's Changed
- Bump zig to 0.12.0-dev.2631+3069669bc, ask users to collaborate by @motiejus-wix in #155
- CI and MacOS fixes by @motiejus in #156
- MacOS default cache dir: /tmp -> /var/tmp by @motiejus in #163
Incompatible changes
Zig cache path in MacOS is now in /var/tmp/zig-cache instead of /tmp/zig-cache. Thus update your project's .bazelrc to make it work for both Linux and MacOS:
build --sandbox_add_mount_pair=/tmp
build --sandbox_add_mount_pair=/var/tmp
Windows
Cache path moved to C:\Temp\zig-cache. Update your .bazelrc to:
build --sandbox_add_mount_pair=C:\Temp
WORKSPACE boilerplate
load("@bazel_tools//tools/build_defs/repo:http.bzl", "http_archive")
HERMETIC_CC_TOOLCHAIN_VERSION = "v3.0.0"
http_archive(
name = "hermetic_cc_toolchain",
sha256 = "fe00bd126e57a4c3fec4efa620bf074e3d1f1fbd70b75113ca56a010d7a70d93",
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()
Full Changelog: v2.2.1...v3.0.0
v2.2.3
What's Changed
- error: FileNotFound workaround in #150
- Bump zig to 0.12.0-dev.2631+3069669bc, ask users to collaborate in #155
Release boilerplate
load("@bazel_tools//tools/build_defs/repo:http.bzl", "http_archive")
HERMETIC_CC_TOOLCHAIN_VERSION = "v2.2.3"
http_archive(
name = "hermetic_cc_toolchain",
sha256 = "07a2b1a452065a385100e63c2814fd7631a7c763dab1e008a0108705944c94af",
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()
Full Changelog: v2.2.1...v2.2.3
v2.2.1
What's Changed
- Fix non-existent paths being included in globs by @robinlinden in #145
Full Changelog: v2.2.0...v2.2.1
WORKSPACE boilerplate
load("@bazel_tools//tools/build_defs/repo:http.bzl", "http_archive")
HERMETIC_CC_TOOLCHAIN_VERSION = "v2.2.1"
http_archive(
name = "hermetic_cc_toolchain",
sha256 = "3b8107de0d017fe32e6434086a9568f97c60a111b49dc34fc7001e139c30fdea",
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.2.0
What's New
Zig upgrade brings in the following changes:
- bump glibc support from 2.34 to 2.38
- fix integration with some glibc symbols: ziglang/zig#17702
- mitigat
error: AccessDenied, which, according to Noah Santschi-Cooney, also mitigates/fixes the dreadederror: FileNotFoundwhich we sometimes see when setting up Bazel worksace. Relevant commit in Zig: ziglang/zig@6b27096 - linker: support
--(no-)undefined-version: ziglang/zig#18486. This will unbreak some Rust users. - LLVM16 -> LLVM17, which now defaults to
-Wl,--undefined-version, which can result in failure to link some C code (but easy to mitigate). Example in zlib and the specific workaround.
Full Changelog: v2.1.3...v2.2.0
WORKSPACE boilerplate
load("@bazel_tools//tools/build_defs/repo:http.bzl", "http_archive")
HERMETIC_CC_TOOLCHAIN_VERSION = "v2.2.0"
http_archive(
name = "hermetic_cc_toolchain",
sha256 = "5c97ec998e982742ff32902517acad29a856006a6476ae28e62575fabba2a23c",
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()