Sigrid Solveig Haflínudóttiradd todo120ea894 years agoHistory
19 lines · 673 B · Markdown
RawDownload

llcache

ccache-like program for llc and opt, mainly to speed up GHC on slow arches (aarch64).

stack

Not exactly sure what stack does to PATH variable, but apparently trying to put llcache compiled as llc and opt into PATH does NOT work.

Create symlinks (named llc and opt) somewhere, pointing at llcache.

LLCACHE_DIR=~/.llcache stack ... --ghc-options '-pgmlo .../llcache/opt -pgmlc .../llcache/llc'

TODO

  • better error handling
  • zstd compression of the output files
  • handle stdin/stdout processing - llc/opt called without filename(s)
  • rebuild when llc/opt changed (look at elf build id? sha256 the entire thing? check mtime?)

Keyboard shortcuts

General

Show keyboard shortcuts
?
Focus the current search
/

Issues and pull requests

Open filters
f

Issues, pull requests and Inbox

Select next item
j↓
Select previous item
k↑
Open selected item
Enter
Dismiss filters or clear selection
Esc

Repository code

Go to file
t