Skip to content

Commit 25ff1b7

Browse files
committed
Update the Zig version
1 parent fd8841c commit 25ff1b7

2 files changed

Lines changed: 8 additions & 10 deletions

File tree

lambdas/toolchains/zig_repositories.bzl

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -21,17 +21,17 @@ 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.2882+13d58258a"
24+
_VERSION = "0.10.0-dev.3529+44a6172ed"
2525

2626
_SHA256 = {
27-
"linux-x86_64": "2b7adf0eca93d300d62ecbaf781c75ff5dfc3e596413a3dac7412f7d7beb967a",
28-
"linux-aarch64": "6cf7af93338072dfc76ae3259ea55d08a0cb75cd698b44f509fdd467b65d54fd",
29-
"macos-x86_64": "c522f96102741e7b9f3eb50ac5756a95b9326c65a56f24f94bfef55b70cb876c",
30-
"macos-aarch64": "5abccfc211b8876f5f8fd3299de80157ef430546e225a2bc9d5d3a5344b73b4e",
27+
"linux-x86_64": "11753bbb58acb5bbc133b678f9b8b8edf2c3603f1c5cd493afb3026f2ccd81f9",
28+
"linux-aarch64": "7fc31ebc02de51091ba9d0176b0abb3a374f6f45cf111f7924becc67943bd854",
29+
"macos-x86_64": "f098c41ab617718564f61fdd31f09066cd8fc1f1612f44c6b3c941a1faa6306f",
30+
"macos-aarch64": "aa138ec924106e0cdad49cf4710efb91ff9ccef187a8b524e2747795aaff8f71",
3131
}
3232

3333
ZIG_TOOL_PATH = "tools/{zig_tool}"
34-
ZIG_TOOL_WRAPPER = """#!/bin/bash
34+
ZIG_TOOL_WRAPPER = """#!/usr/bin/env bash
3535
set -e
3636
3737
if [[ -n "$TMPDIR" ]]; then

lambdas/toolchains/zig_toolchain.bzl

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -77,7 +77,7 @@ def _compilation_mode_features():
7777
actions = actions,
7878
flag_groups = [
7979
flag_group(
80-
flags = ["-fno-lto", "-Wl,-S", "-O0"],
80+
flags = ["-fno-lto", "-Wl,-S"],
8181
),
8282
],
8383
),
@@ -100,7 +100,6 @@ def _zig_cc_toolchain_config_impl(ctx):
100100
"-D__TIMESTAMP__=\"redacted\"",
101101
"-D__TIME__=\"redacted\"",
102102
]
103-
no_gc_sections = ["-Wl,--no-gc-sections"]
104103

105104
compile_and_link_flags = feature(
106105
name = "compile_and_link_flags",
@@ -109,7 +108,6 @@ def _zig_cc_toolchain_config_impl(ctx):
109108
flag_set(
110109
actions = compile_and_link_actions,
111110
flag_groups = [
112-
flag_group(flags = no_gc_sections),
113111
flag_group(flags = compiler_flags),
114112
],
115113
),
@@ -124,7 +122,7 @@ def _zig_cc_toolchain_config_impl(ctx):
124122
actions = all_link_actions,
125123
flag_groups = [
126124
flag_group(
127-
flags = ["-target", ctx.attr.target] + no_gc_sections,
125+
flags = ["-target", ctx.attr.target],
128126
),
129127
],
130128
),

0 commit comments

Comments
 (0)