https://github.com/nh2/link-with-lld-example
Example how to link Haskell programs very quickly with lld
https://github.com/nh2/link-with-lld-example
Last synced: 27 days ago
JSON representation
Example how to link Haskell programs very quickly with lld
- Host: GitHub
- URL: https://github.com/nh2/link-with-lld-example
- Owner: nh2
- Created: 2017-04-07T03:50:12.000Z (about 8 years ago)
- Default Branch: master
- Last Pushed: 2017-04-13T12:47:51.000Z (about 8 years ago)
- Last Synced: 2025-04-09T04:13:04.844Z (about 2 months ago)
- Language: Haskell
- Size: 1.95 KB
- Stars: 48
- Watchers: 5
- Forks: 1
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Linking with `lld` in Haskell builds
**10x faster** than `ld` in the linkin steps, **3x faster** than `gold`.
Use `cabal configure --with-gcc=clang --with-ld=clang`, then `cabal build`.
See the `.cabal` file for what options are needed.
## Bugs
**cabal** bugs that prevent using `lld` in the library linking step:
* [cabal does not respect ghc-options for -pgmc, -pgml etc](https://github.com/haskell/cabal/issues/4439)
You can't currently use `lld` correctly in **nix** because of this bug:
* [LLD linker does not have required nixpkgs wrapper script and flags](https://github.com/NixOS/nixpkgs/issues/24744)