Skip to content

Commit

Permalink
Update wording on LLVM versions (#139)
Browse files Browse the repository at this point in the history
Signed-off-by: Dmitry S <[email protected]>
  • Loading branch information
dmitris authored Oct 31, 2023
1 parent 13b5bf9 commit bfe031e
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 3 deletions.
6 changes: 4 additions & 2 deletions docs/book/aya/crosscompile.md
Original file line number Diff line number Diff line change
Expand Up @@ -40,9 +40,11 @@ brew install FiloSottile/musl-cross/musl-cross --with-aarch64
See [homebrew-musl-cross](https://github.com/FiloSottile/homebrew-musl-cross)
for additional platform-specific options.

1. Install bpf-linker:
1. Install bpf-linker. Change the version number in `LLVM_SYS_<version>_PREFIX` to correspond
to the major version of the [llvm-sys](https://crates.io/crates/llvm-sys) crate:

```bash
LLVM_SYS_160_PREFIX=$(brew --prefix llvm) cargo install bpf-linker --no-default-features
LLVM_SYS_170_PREFIX=$(brew --prefix llvm) cargo install bpf-linker --no-default-features
```
1. Build BPF object files:
```bash
Expand Down
2 changes: 1 addition & 1 deletion docs/book/start/development.md
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ cargo install bpf-linker
```

If you are running **macos, or linux on any other architecture**, you need to
install LLVM 16 first (for example, with `brew install llvm`),
install the newest stable version of LLVM first (for example, with `brew install llvm`),
then install the linker with:

```console
Expand Down

0 comments on commit bfe031e

Please sign in to comment.