From e3d3fdd770655f6a13b68072e01abd168b2b1cf3 Mon Sep 17 00:00:00 2001 From: Pascal Kuthe Date: Wed, 18 Jan 2023 16:37:26 +0100 Subject: [PATCH] add build instructions for musl-libc --- book/src/install.md | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/book/src/install.md b/book/src/install.md index bf0ff079c40e..e2e546c72cef 100644 --- a/book/src/install.md +++ b/book/src/install.md @@ -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.