1
Fork 0

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
1 changed files with 3 additions and 1 deletions

View File

@ -163,7 +163,9 @@ else
fi
export ZIG_LOCAL_CACHE_DIR="$cache_prefix/bazel-zig-cc"
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 = [