1

flock zig toolchain

slower, but more robust.
This commit is contained in:
Motiejus Jakštys 2021-08-04 15:16:18 +03:00
parent 13cba6c244
commit 144a87cd4c

View File

@ -163,7 +163,9 @@ else
fi fi
export ZIG_LOCAL_CACHE_DIR="$cache_prefix/bazel-zig-cc" export ZIG_LOCAL_CACHE_DIR="$cache_prefix/bazel-zig-cc"
export ZIG_GLOBAL_CACHE_DIR=$ZIG_LOCAL_CACHE_DIR export ZIG_GLOBAL_CACHE_DIR=$ZIG_LOCAL_CACHE_DIR
exec "{zig}" "{zig_tool}" "$@"
# https://github.com/ziglang/zig/issues/9431
exec flock "{zig}" "{zig}" "{zig_tool}" "$@"
""" """
_ZIG_TOOLS = [ _ZIG_TOOLS = [