on master help sign in
doc: add build instructions for musl-libc (#5572)
commit1b69c7b4af8867f46365f6e04ab2ba29676c312c authorPascal Kuthe <pascal.kuthe@semimod.de> dateWed 18 Jan 2023, 17:01 (4 years ago) parent5c7db7a
1 file changed+8
book/src/install.md+8
book/src/install.md+8
@@ -99,6 +99,14 @@ cargo install --path helix-term --locked
9999
100100This will install the `hx` binary to `$HOME/.cargo/bin` and build tree-sitter grammars in `./runtime/grammars`.
101101
102+If you are using the musl-libc instead of glibc the following environment variable must be set during the build
103+to ensure tree sitter grammars can be loaded correctly:
104+
105+```
106+RUSTFLAGS="-C target-feature=-crt-static"
107+```
108+
109+
102110Helix also needs its runtime files so make sure to copy/symlink the `runtime/` directory into the
103111config directory (for example `~/.config/helix/runtime` on Linux/macOS). This location can be overridden
104112via the `HELIX_RUNTIME` environment variable.