How to download llvm-objcopy?

This is only tangentially related to Zig, but I need to use llvm-objcopy (the real one, not zig objcopy) in build.zig.

As my build needs to run on windows, linux, and mac, and behave identically, I really don’t want to use my distribution’s llvm-objcopy.

What I’d rather do is write a bit of Zig code that fetches the specific version of llvm-objcopy from the internet, verifies its checksum, and stuffs it somewhere in .zig-cache for use by my custom steps.

But what’s the right place to download this binary from? It seems the official releases:

publish only the full suite, with its eye-watering ~GiB archive size.

Is there some kind of llvm-mirror where I can download just the objcopy?

Is there some zig project which warps build of llvm-objcopy into build.zig so that I can build it from source using zig cc?

Ended up manually donwloading 3 gigs of archives, unpacking, and publishing just llvm objcopy at

1 Like

Ahhh, but of course the llvm-objcopy published by upstream llvm depends on glibc :fist: :cloud_with_lightning: