Unnamed repository; edit this file 'description' to name the repository.
-rw-r--r--book/src/building-from-source.md13
1 files changed, 11 insertions, 2 deletions
diff --git a/book/src/building-from-source.md b/book/src/building-from-source.md
index b2ed3f7f..eb6df6d6 100644
--- a/book/src/building-from-source.md
+++ b/book/src/building-from-source.md
@@ -35,10 +35,19 @@ RUSTFLAGS="-C target-feature=-crt-static"
2. Compile from source:
```sh
+ # Reproducible
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.
> 💡 If you do not want to fetch or build grammars, set an environment variable `HELIX_DISABLE_AUTO_GRAMMAR_BUILD`
@@ -182,7 +191,7 @@ cargo deb -- --locked
```
> 💡 This locks you into the `--release` profile. But you can also build helix in any way you like.
-> As long as you leave a `target/release/hx` file, it will get packaged with `cargo deb --no-build`
+> As long as you leave a `target/release/hx` file, it will get packaged with `cargo deb --no-build`
> 💡 Don't worry about the following:
> ```