v3.0.0
Pre-release
Pre-release
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