Skip to content

Commit

Permalink
Set LIBCLANG_PATH for bindgen to work
Browse files Browse the repository at this point in the history
Yes, ".cargo" is in .gitignore and this is better set in the developer
shell's environment, but having it here documents the issue and greatly
helps hacking on it.

https://doc.rust-lang.org/nightly/cargo/reference/config.html#env
`[env]` has been stabalised in Rust 1.56.0, so crank the requirement.

This is probably best dealt with in the OpenBSD port's Makefile once
psst is ready for it.
  • Loading branch information
klemensn committed Jan 16, 2022
1 parent cc0430e commit 8b55d30
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 1 deletion.
4 changes: 4 additions & 0 deletions .cargo/config.toml
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
[env]
# point bindgen at LLVM on OpenBSD
# required to build at least clang-sys, sndio-sys and cpal
LIBCLANG_PATH = { value = "/usr/local/lib" }
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@ export LIBCLANG_PATH=/usr/local/lib

##### Building

On all platforms, the **latest Rust stable** (at least 1.54.0) is needed.
On all platforms, the **latest Rust stable** (at least 1.56.0) is needed.

Development build:
```shell
Expand Down

0 comments on commit 8b55d30

Please sign in to comment.