Skip to content

Commit 2af9bf4

Browse files
committed
move to zig-cache cache prefix
1 parent 4680de9 commit 2af9bf4

1 file changed

Lines changed: 2 additions & 6 deletions

File tree

toolchain/defs.bzl

Lines changed: 2 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -147,12 +147,8 @@ def _zig_repository_impl(repository_ctx):
147147

148148
cache_prefix = repository_ctx.os.environ.get("HERMETIC_CC_TOOLCHAIN_CACHE_PREFIX", "")
149149
if cache_prefix == "":
150-
if os == "windows":
151-
cache_prefix = "Temp\\\\zig-cache"
152-
elif os == "macos":
153-
cache_prefix = "/var/tmp/zig-cache"
154-
elif os == "linux":
155-
cache_prefix = "/tmp/zig-cache"
150+
if os == "windows" or os == "macos" or os == "linux":
151+
cache_prefix = "zig-cache"
156152
else:
157153
fail("unknown os: {}".format(os))
158154

0 commit comments

Comments
 (0)