docs(building-from-source): suggest optimized install cmd as alternative (#13553)

pull/11441/head
Ricardo Fernández Serrata 2025-05-24 10:24:09 -04:00 committed by GitHub
parent b70b8df916
commit 237d875e7d
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
1 changed files with 11 additions and 2 deletions

View File

@ -35,10 +35,19 @@ RUSTFLAGS="-C target-feature=-crt-static"
2. Compile from source: 2. Compile from source:
```sh ```sh
# Reproducible
cargo install --path helix-term --locked cargo install --path helix-term --locked
``` ```
```sh
# Optimized
cargo install \
--profile opt \
--config 'build.rustflags="-C target-cpu=native"' \
--path helix-term \
--locked
```
This command will create the `hx` executable and construct the tree-sitter Either command will create the `hx` executable and construct the tree-sitter
grammars in the local `runtime` folder. grammars in the local `runtime` folder.
> 💡 If you do not want to fetch or build grammars, set an environment variable `HELIX_DISABLE_AUTO_GRAMMAR_BUILD` > 💡 If you do not want to fetch or build grammars, set an environment variable `HELIX_DISABLE_AUTO_GRAMMAR_BUILD`