Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/keith/ld64.lld

macOS universal binary downloads of ld64.lld
https://github.com/keith/ld64.lld

Last synced: 3 days ago
JSON representation

macOS universal binary downloads of ld64.lld

Awesome Lists containing this project

README

        

# ld64.lld

This repo vendors universal macOS binaries of
[lld](https://lld.llvm.org) built for MachO support. Ideally these
binaries will eventually come from [llvm
releases](https://github.com/llvm/llvm-project/releases) instead, but
currently this project is in active development, and tracking a version
closer to HEAD can be useful.

# Installation

Either grab a binary from [the releases
page](https://github.com/keith/ld64.lld/releases)

Or install with: `brew install keith/formulae/ld64.lld`

## Build instructions

To build the smallest and fastest binary possible, I'm currently
building this with:

```
cmake ../llvm -G Ninja -DLLVM_ENABLE_PROJECTS='lld' -DCMAKE_BUILD_TYPE=Release -DPKG_CONFIG_EXECUTABLE=/bin/true -DCMAKE_OSX_DEPLOYMENT_TARGET=11.0 -DLLVM_ENABLE_LTO=Thin -DLLVM_TARGETS_TO_BUILD='X86;AArch64' -DCMAKE_OSX_ARCHITECTURES='x86_64;arm64' -DLLVM_ENABLE_ZSTD=NO
ninja lld
strip -rSx bin/lld
cd bin
mv lld ld64.lld
COPYFILE_DISABLE=1 tar czvf ld64.tar.gz ld64.lld
COPYFILE_DISABLE=1 tar cJvf ld64.tar.xz ld64.lld
sha256sum ld64.lld ld64.tar.gz ld64.tar.xz
git log --oneline -1000000 PREVIOUS_RELEASE_SHA...HEAD -- lld/MachO
```