mirror of https://github.com/helix-editor/helix
docs(building-from-source): suggest optimized install cmd as alternative (#13553)
parent
b70b8df916
commit
237d875e7d
|
@ -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`
|
||||||
|
|
Loading…
Reference in New Issue