Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
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
- Host: GitHub
- URL: https://github.com/keith/ld64.lld
- Owner: keith
- License: mit
- Created: 2021-12-07T01:25:53.000Z (almost 3 years ago)
- Default Branch: main
- Last Pushed: 2024-10-21T18:45:57.000Z (22 days ago)
- Last Synced: 2024-10-22T10:59:56.498Z (22 days ago)
- Homepage:
- Size: 6.84 KB
- Stars: 47
- Watchers: 2
- Forks: 3
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
- License: LICENSE
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
```