Skip to content

Commit

Permalink
use a client's workspace root (outputBase)
Browse files Browse the repository at this point in the history
  • Loading branch information
chrisirhc committed Feb 1, 2025
1 parent 4659f43 commit edf5a31
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion toolchain/defs.bzl
Original file line number Diff line number Diff line change
Expand Up @@ -192,7 +192,8 @@ def _zig_repository_impl(repository_ctx):
cache_prefix = repository_ctx.os.environ.get("HERMETIC_CC_TOOLCHAIN_CACHE_PREFIX", "")
if cache_prefix == "":
if host_os == "windows" or host_os == "macos" or host_os == "linux":
cache_prefix = "zig-cache"
# Use a shared cache directory in the execroot for all platforms
cache_prefix = "../../../zig_cache"
else:
fail("unknown os: {}".format(host_os))

Expand Down

0 comments on commit edf5a31

Please sign in to comment.