Skip to content

Commit

Permalink
Update the Zig version
Browse files Browse the repository at this point in the history
  • Loading branch information
duarten committed Aug 16, 2022
1 parent fd8841c commit 25ff1b7
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 10 deletions.
12 changes: 6 additions & 6 deletions lambdas/toolchains/zig_repositories.bzl
Original file line number Diff line number Diff line change
Expand Up @@ -21,17 +21,17 @@ ZIG_URL_TEMPLATE = "https://ziglang.org/download/{version}/zig-{host_platform}-{

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

_VERSION = "0.10.0-dev.2882+13d58258a"
_VERSION = "0.10.0-dev.3529+44a6172ed"

_SHA256 = {
"linux-x86_64": "2b7adf0eca93d300d62ecbaf781c75ff5dfc3e596413a3dac7412f7d7beb967a",
"linux-aarch64": "6cf7af93338072dfc76ae3259ea55d08a0cb75cd698b44f509fdd467b65d54fd",
"macos-x86_64": "c522f96102741e7b9f3eb50ac5756a95b9326c65a56f24f94bfef55b70cb876c",
"macos-aarch64": "5abccfc211b8876f5f8fd3299de80157ef430546e225a2bc9d5d3a5344b73b4e",
"linux-x86_64": "11753bbb58acb5bbc133b678f9b8b8edf2c3603f1c5cd493afb3026f2ccd81f9",
"linux-aarch64": "7fc31ebc02de51091ba9d0176b0abb3a374f6f45cf111f7924becc67943bd854",
"macos-x86_64": "f098c41ab617718564f61fdd31f09066cd8fc1f1612f44c6b3c941a1faa6306f",
"macos-aarch64": "aa138ec924106e0cdad49cf4710efb91ff9ccef187a8b524e2747795aaff8f71",
}

ZIG_TOOL_PATH = "tools/{zig_tool}"
ZIG_TOOL_WRAPPER = """#!/bin/bash
ZIG_TOOL_WRAPPER = """#!/usr/bin/env bash
set -e
if [[ -n "$TMPDIR" ]]; then
Expand Down
6 changes: 2 additions & 4 deletions lambdas/toolchains/zig_toolchain.bzl
Original file line number Diff line number Diff line change
Expand Up @@ -77,7 +77,7 @@ def _compilation_mode_features():
actions = actions,
flag_groups = [
flag_group(
flags = ["-fno-lto", "-Wl,-S", "-O0"],
flags = ["-fno-lto", "-Wl,-S"],
),
],
),
Expand All @@ -100,7 +100,6 @@ def _zig_cc_toolchain_config_impl(ctx):
"-D__TIMESTAMP__=\"redacted\"",
"-D__TIME__=\"redacted\"",
]
no_gc_sections = ["-Wl,--no-gc-sections"]

compile_and_link_flags = feature(
name = "compile_and_link_flags",
Expand All @@ -109,7 +108,6 @@ def _zig_cc_toolchain_config_impl(ctx):
flag_set(
actions = compile_and_link_actions,
flag_groups = [
flag_group(flags = no_gc_sections),
flag_group(flags = compiler_flags),
],
),
Expand All @@ -124,7 +122,7 @@ def _zig_cc_toolchain_config_impl(ctx):
actions = all_link_actions,
flag_groups = [
flag_group(
flags = ["-target", ctx.attr.target] + no_gc_sections,
flags = ["-target", ctx.attr.target],
),
],
),
Expand Down

0 comments on commit 25ff1b7

Please sign in to comment.