docs: add section about post-merge compiling

This commit is contained in:
Ade Attwood 2023-03-03 07:18:08 +00:00
parent 4dd8927ea2
commit 2032d0748b
2 changed files with 15 additions and 0 deletions

View file

@ -44,6 +44,16 @@ error: linker `cc` not found
= note: No such file or directory (os error 2) = note: No such file or directory (os error 2)
``` ```
To configure auto compiling you can use the [`post-merge`](./post-merge.sample)
git hook to compile the library automatically when you update the package. This
works well if you are managing your plugins via git. For an example
installation you can run the following command. **NOTE:** This will overwrite
any post-merge hooks you have already installed.
```sh
cp ./post-merge.sample ./.git/hooks/post-merge
```
## Features ## Features
### Commands ### Commands

5
post-merge.sample Executable file
View file

@ -0,0 +1,5 @@
#! /bin/bash
# Automatically compile libivy.so when we pull down the repo.
# https://github.com/AdeAttwood/ivy.nvim#compiling
cargo build --release