Unnamed repository; edit this file 'description' to name the repository.
Diffstat (limited to 'book/src/building-from-source.md')
| -rw-r--r-- | book/src/building-from-source.md | 17 |
1 files changed, 4 insertions, 13 deletions
diff --git a/book/src/building-from-source.md b/book/src/building-from-source.md index 33038098..fc8631b0 100644 --- a/book/src/building-from-source.md +++ b/book/src/building-from-source.md @@ -35,19 +35,10 @@ 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 - ``` - Either command will create the `hx` executable and construct the tree-sitter + This 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` @@ -191,13 +182,13 @@ 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: +> 💡 Don't worry about the repeated > ``` > warning: Failed to find dependency specification > ``` -> Cargo deb just reports which packaged files it didn't derive dependencies for. But +> warnings. Cargo deb just reports which packaged files it didn't derive dependencies for. But > so far the dependency deriving seams very good, even if some of the grammar files are skipped. You can find the resulted `.deb` in `target/debian/`. It should contain everything it needs, including the |