zar
zar copied to clipboard
An attempt to write an archiver using zig
Windows isn't a native target for redis, but we should still be able to cross-compile from windows to other platforms.
Get it working for redis cross-compilation as basic test-case.
This is currently done it quite an ad-hoc fashion. Mainly to do what is needed to get the tests parsing. So this needs to be properly handled and documents.
This is a tricky one, because ZLD currently requires a file handle + offset. One option is to use this API and then just give it the archive file with...
https://llvm.org/docs/CommandGuide/llvm-ar.html > Windows Paths > When on Windows llvm-ar treats the names of archived files in the same case sensitive manner as the operating system. When on a non-Windows machine...
Some of the things we do at comptime in the unit tests are really slow - so making them runtime should hopefully speed up the test.
It's currently disabled because it crashes on a few of the examples we have.
POC at [ranlib](https://github.com/moosichu/zar/tree/ranlib) branch for elf files (gnu format only) right now. It uses object parsing code from zld directly with minimal changes to compile without unneeded files, but maintains...
https://github.com/llvm-mirror/llvm/blob/2c4ca6832fa6b306ee6a7010bfb80a3f2596f824/lib/Object/ArchiveWriter.cpp#L389 I came across this when researching how llvm ar did something else. Specifically: > in deterministic archive mode (which > is the default), on Darwin we will emit a...