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: FileNotFound
which 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()