diff options
| author | Andrew Kelley <andrew@ziglang.org> | 2020-09-13 18:04:17 -0700 |
|---|---|---|
| committer | Andrew Kelley <andrew@ziglang.org> | 2020-09-13 18:04:52 -0700 |
| commit | 1baa56a25f7b4cf7b3e0a78ded90c432a40c4efa (patch) | |
| tree | 631b636a5ec792aa063e3092f20be06d2c7180fd /src/codegen.cpp | |
| parent | af4cc20ce275aeb0e59eee3d893b2f310c1f0239 (diff) | |
| download | zig-1baa56a25f7b4cf7b3e0a78ded90c432a40c4efa.tar.gz zig-1baa56a25f7b4cf7b3e0a78ded90c432a40c4efa.zip | |
std.cache_hash: break up the API and improve implementation
into smaller exposed components and expose all of them. This makes it
more flexible.
`*const Cache` is now passed in with an open manifest dir handle which
the caller is responsible for managing.
Expose some of the base64 stuff.
Extract the hash helper functions into `HashHelper` and add some more
methods such as addOptional and addListOfFiles.
Add `CacheHash.toOwnedLock` so that you can deinitialize everything
except the open file handle which represents the file system lock on the
build artifacts.
Use ArrayListUnmanaged, saving space per allocated CacheHash.
Avoid 1 memory allocation in hit() with a static buffer.
hit() returns a bool; caller code is responsible for calling final() in
either case. This is a simpler and easier to use API.
writeManifest() is no longer called from deinit() with errors ignored.
Diffstat (limited to 'src/codegen.cpp')
0 files changed, 0 insertions, 0 deletions
