Skip to content

Commit 88a2f09

Browse files
committed
Set LIBCLANG_PATH for bindgen to work
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.
1 parent 9542a4b commit 88a2f09

File tree

2 files changed

+5
-1
lines changed

2 files changed

+5
-1
lines changed

.cargo/config.toml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
[env]
2+
# point bindgen at LLVM on OpenBSD
3+
# required to build at least clang-sys, sndio-sys and cpal
4+
LIBCLANG_PATH = { value = "/usr/local/lib" }

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,7 @@ export LIBCLANG_PATH=/usr/local/lib
4242

4343
##### Building
4444

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

4747
Development build:
4848
```shell

0 commit comments

Comments
 (0)