1
Fork 0

More data.

The truth is somewhere between absolute paths, relative paths, and
sandbox size.

Will probably investigate more when #13050 and #13160 are resolved.
This commit is contained in:
Motiejus Jakštys 2022-10-26 00:00:18 +03:00
parent fb7f72d56c
commit 06d0014016
2 changed files with 23 additions and 1 deletions

View File

@ -33,3 +33,17 @@ INFO: Elapsed time: 214.333s, Critical Path: 18.31s
INFO: 385 processes: 193 internal, 192 linux-sandbox.
INFO: Build completed successfully, 385 total actions
```
Move sandbox to `/dev/shm` and reuse the sandboxes: 3 minutes and a bit.
```
$ bazel clean; bazel shutdown; bazel build --sandbox_base=/dev/shm --experimental_reuse_sandbox_directories --platforms=@zig_sdk//libc_aware/platform:linux_amd64_gnu.2.28 ...
INFO: Starting clean (this may take a while). Consider using --async if the clean takes more than several minutes.
Starting local Bazel server and connecting to it...
INFO: Analyzed 96 targets (41 packages loaded, 14394 targets configured).
INFO: Found 96 targets...
INFO: Elapsed time: 194.643s, Critical Path: 25.35s
INFO: 385 processes: 193 internal, 192 linux-sandbox.
INFO: Build completed successfully, 385 total actions
motiejus@motiejus-20NYS8QG0B:/code/test-zigcc$
```

View File

@ -43,7 +43,15 @@ http_archive(
load("@bazel-zig-cc//toolchain:defs.bzl", zig_toolchains = "toolchains")
zig_toolchains()
zig_toolchains(
host_platform_sha256 = {
"linux-x86_64": "c617ac061307c48903caae4b4cab5e919f92fce27f369fa4b6acea123b0f3c22",
},
url_formats = [
"https://dl.jakstys.lt/zig/zig-{host_platform}-{version}.{_ext}",
],
version = "0.10.0-dev.4561+uber1",
)
register_toolchains(
# amd64 toolchains for libc-aware platforms: