Skip to content

Commit

Permalink
doc: add build instructions for musl-libc (#5572)
Browse files Browse the repository at this point in the history
  • Loading branch information
pascalkuthe authored Jan 18, 2023
1 parent 5c7db7a commit 1b69c7b
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions book/src/install.md
Original file line number Diff line number Diff line change
Expand Up @@ -99,6 +99,14 @@ cargo install --path helix-term --locked

This will install the `hx` binary to `$HOME/.cargo/bin` and build tree-sitter grammars in `./runtime/grammars`.

If you are using the musl-libc instead of glibc the following environment variable must be set during the build
to ensure tree sitter grammars can be loaded correctly:

```
RUSTFLAGS="-C target-feature=-crt-static"
```


Helix also needs its runtime files so make sure to copy/symlink the `runtime/` directory into the
config directory (for example `~/.config/helix/runtime` on Linux/macOS). This location can be overridden
via the `HELIX_RUNTIME` environment variable.
Expand Down

0 comments on commit 1b69c7b

Please sign in to comment.