Releases: uber/hermetic_cc_toolchain
Releases · uber/hermetic_cc_toolchain
v2.1.0
This is the first version where hermetic_cc_toolchain becomes a Bazel module.
What's Changed
- rules:cp : make reproducible by @motiejus in #87
- UBSAN: strip paths by @motiejus in #90
- tests: remove almost all mentions of glibc 2.19 by @motiejus in #101
- Enable bzlmod by @dstufft in #96
- Upgrade zig to 0.11.0 by @linzhp in #111
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
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
- releaser: fix pax artifacts by @motiejus in #67
- ci test_example with a release tarball by @motiejus in #66
- check-only mode, for v2.0.0-rc2 by @motiejus in #68
- zig sdk: mirror check by @motiejus in #69
- remove mailing-list-archive by @motiejus in #71
- README updates by @motiejus in #73
- [chore] dependency upgrades by @motiejus in #70
- bump zig sdk + simplify zig build workaround by @motiejus in #75
- launcher: rename to zig-wrapper + passthrough mode by @motiejus in #72
- ci/lint: also lint all zig files there by @motiejus in #78
- Add windows aliases by @motiejus in #79
- platform_binary: use our cp by @motiejus in #77
- Revert "platform_binary: use our cp" by @motiejus in #81
- update zig to 0.11.0-dev.3312+ab37ab33c by @motiejus in #82
- tests: windows fine tuning by @motiejus in #80
- Replace
cp
with zig implementation: v2 by @motiejus in #84
Full Changelog: v2.0.0-rc2...v2.0.0
v2.0.0-rc2
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
- remove rules/rules_go by @motiejus in #42
- bump zig sdk to 0.11.0-dev.2619+bd3e248c7 by @motiejus in #44
- remaining linker_version_scripts cleanup by @motiejus in #43
- Re-add linkopts and set -Wl,-headerpad_max_install_names on macos by @jvolkman in #33
- update mailing list archive by @motiejus in #45
- releaser: add MODULE.bazel by @motiejus in #46
- Move -Wl,-S to a separate strip_debug_symbols feature by @jvolkman in #48
- Merge v2.0.0-rc1 by @motiejus in #47
- README updates by @jonathanbaker7 in #49
- remove PUBLICITY.md by @motiejus in #51
- zig cache dir: move to
/tmp/zig-cache
by @motiejus in #52 - maintainers: update the section by @motiejus in #53
- disable dynamic linker for Windows targets by @FabianHahn in #60
- Add FabianHahn to maintainers by @motiejus in #61
- Basic isolated example for rules_cc. by @laurynaslubys in #59
- update releaser boilerplate + encourage v2.0.0-rc1 by @motiejus in #62
- gofmt + fix some shellcheck issues by @motiejus in #63
- releaser: use git-archive again by @motiejus in #64
New Contributors
- @jvolkman made their first contribution in #33
- @FabianHahn made their first contribution in #60
- @laurynaslubys made their first contribution in #59
Full Changelog: v2.0.0-rc1...v2.0.0-rc2
v2.0.0-rc1
Top level
This is the first Release Candidate for hermetic_cc_toolchain
v2. Highlights:
- Name change. It is now
hermetic_cc_toolchain
almost everywhere. - 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. - Remove
fcntl64
andres_*
hacks, as they have been fixed upstream. - Add a workaround to a
zig build-exe
race in zig. - Remove top-level folder
rules/
. - Repository variable for Zig cache directory changed from
BAZEL_ZIG_CC_CACHE_PREFIX
toHERMETIC_CC_TOOLCHAIN_CACHE_PREFIX
. - 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.
- 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
- More CI by @motiejus in #3
- remove contrib/ by @motiejus in #4
- update README by @motiejus in #5
- go mod tidy by @motiejus in #7
- all commands: use /tmp/bazel-zig-cc by @motiejus in #6
- Add the mailing list archive by @motiejus in #8
- move bin/ to tools/ by @motiejus in #9
- launcher miscompilation workaround by @motiejus in #16
- releaser by @motiejus in #12
- Fixed release URL in readme by @jonathanbaker7 in #26
- Fixing the url template in readme by @linzhp in #27
- Make Project Origin more prominent by @motiejus in #34
- revert "Re-license portions of the code to Apache 2.0" by @motiejus in #35
- rename to hermetic_cc_toolchain by @motiejus in #36
- README: fix the download URL by @motiejus in #37
- remove
@bazel_skylib
dependency by @motiejus in #32 - Work around a known race in Zig build system by @motiejus in #18
- rules/ remove run_under by @motiejus in #21
- remove @bazel_skylib dependency (again) by @motiejus in #41
- Adding MODULE.bazel by @linzhp in #19
- remove glibc hacks and update Zig SDK by @goniz in #30
- README.md: use the correct badge by @motiejus in #28
- README: bring the compat name of
http_archive
by @motiejus in #40 - launcher: use
-mcpu=baseline
by @motiejus in #23
New Contributors
- @jonathanbaker7 made their first contribution in #26
- @goniz made their first contribution in #30
Full Changelog: v1.0.1...v2.0.0-rc1
v1.0.1
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