Skip to content

Commit ecaff08

Browse files
committed
Update zig version
1 parent 740f0e8 commit ecaff08

2 files changed

Lines changed: 7 additions & 30 deletions

File tree

lambdas/toolchains/zig_repositories.bzl

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -21,13 +21,13 @@ ZIG_URL_TEMPLATE = "https://ziglang.org/download/{version}/zig-{host_platform}-{
2121

2222
ZIG_NIGHTLY_URL_TEMPLATE = "https://ziglang.org/builds/zig-{host_platform}-{version}.tar.xz"
2323

24-
_VERSION = "0.10.0-dev.3529+44a6172ed"
24+
_VERSION = "0.10.1"
2525

2626
_SHA256 = {
27-
"linux-x86_64": "11753bbb58acb5bbc133b678f9b8b8edf2c3603f1c5cd493afb3026f2ccd81f9",
28-
"linux-aarch64": "7fc31ebc02de51091ba9d0176b0abb3a374f6f45cf111f7924becc67943bd854",
29-
"macos-x86_64": "f098c41ab617718564f61fdd31f09066cd8fc1f1612f44c6b3c941a1faa6306f",
30-
"macos-aarch64": "aa138ec924106e0cdad49cf4710efb91ff9ccef187a8b524e2747795aaff8f71",
27+
"linux-x86_64": "6699f0e7293081b42428f32c9d9c983854094bd15fee5489f12c4cf4518cc380",
28+
"linux-aarch64": "4a818171f9a0429082ee53b7e2bc7a68bf862cb0326df8ab6db0d1e2e8147aa7",
29+
"macos-x86_64": "02483550b89d2a3070c2ed003357fd6e6a3059707b8ee3fbc0c67f83ca898437",
30+
"macos-aarch64": "b9b00477ec5fa1f1b89f35a7d2a58688e019910ab80a65eac2a7417162737656",
3131
}
3232

3333
ZIG_TOOL_PATH = "tools/{zig_tool}"
@@ -115,7 +115,7 @@ zig_repository = repository_rule(
115115
def zig_register_toolchains(
116116
register = [],
117117
version = _VERSION,
118-
url_template = ZIG_NIGHTLY_URL_TEMPLATE,
118+
url_template = ZIG_URL_TEMPLATE,
119119
sha256 = _SHA256):
120120
"""Repository rule for the Zig toolchains.
121121

lambdas/toolchains/zig_toolchain.bzl

Lines changed: 1 addition & 24 deletions
Original file line numberDiff line numberDiff line change
@@ -117,34 +117,11 @@ def _zig_cc_toolchain_config_impl(ctx):
117117
default_linker_flags = feature(
118118
name = "default_linker_flags",
119119
enabled = True,
120-
flag_sets = [
121-
flag_set(
122-
actions = all_link_actions,
123-
flag_groups = [
124-
flag_group(
125-
flags = ["-target", ctx.attr.target],
126-
),
127-
],
128-
),
129-
],
130-
)
131-
132-
other_compile_flags = feature(
133-
name = "other_compile_flags",
134-
enabled = True,
135-
flag_sets = [
136-
flag_set(
137-
actions = other_compile_actions,
138-
flag_groups = [
139-
flag_group(flags = compiler_flags),
140-
],
141-
),
142-
],
120+
flag_sets = [],
143121
)
144122

145123
features = [
146124
compile_and_link_flags,
147-
other_compile_flags,
148125
default_linker_flags,
149126
] + _compilation_mode_features()
150127

0 commit comments

Comments
 (0)