@@ -62,20 +62,14 @@ And this to `.bazelrc` on a Unix-y systems:
62
62
63
63
```
64
64
common --enable_platform_specific_config
65
- build:linux --sandbox_add_mount_pair=/tmp
66
- build:macos --sandbox_add_mount_pair=/var/tmp
67
- build:windows --sandbox_add_mount_pair=C:\Temp
68
65
```
69
66
70
- The directories can be narrowed down to ` /tmp/zig-cache ` (Linux),
71
- ` /var/tmp/zig-cache ` (MacOS) and ` C:\Temp\zig-cache ` respectively
72
- if it can be ensured they will be created before the invocation of `bazel
73
- build`. See [ #83 ] [ pr-83 ] for more context. If a different place is preferred
74
- for zig cache, set:
67
+ The default zig cache location is within ` ./zig-cache ` in the workspace root. If
68
+ a different path is preferred for zig cache, set it. (It is always resolved
69
+ against the workspace root):
75
70
76
71
```
77
- build --repo_env=HERMETIC_CC_TOOLCHAIN_CACHE_PREFIX=/path/to/cache
78
- build --sandbox_add_mount_pair=/path/to/cache
72
+ build --repo_env=HERMETIC_CC_TOOLCHAIN_CACHE_PREFIX=path/to/cache
79
73
```
80
74
81
75
The snippets above will download the zig toolchain and make the bazel
@@ -441,6 +435,5 @@ On a more practical note:
441
435
[ subset ] : https://en.wikipedia.org/wiki/Subset
442
436
[ universal-headers ] : https://github.com/ziglang/universal-headers
443
437
[ go-monorepo ] : https://www.uber.com/blog/go-monorepo-bazel/
444
- [ pr-83 ] : https://github.com/uber/hermetic_cc_toolchain/issues/83
445
438
[ pr-10 ] : https://github.com/uber/hermetic_cc_toolchain/issues/10
446
439
[ examples ] : https://github.com/uber/hermetic_cc_toolchain/tree/main/examples
0 commit comments