We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 4680de9 commit 2af9bf4Copy full SHA for 2af9bf4
1 file changed
toolchain/defs.bzl
@@ -147,12 +147,8 @@ def _zig_repository_impl(repository_ctx):
147
148
cache_prefix = repository_ctx.os.environ.get("HERMETIC_CC_TOOLCHAIN_CACHE_PREFIX", "")
149
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"
+ if os == "windows" or os == "macos" or os == "linux":
+ cache_prefix = "zig-cache"
156
else:
157
fail("unknown os: {}".format(os))
158
0 commit comments