From 141772130337e929262606481feff52f1cafb495 Mon Sep 17 00:00:00 2001 From: Klemens Nanni Date: Thu, 18 Nov 2021 20:35:31 +0100 Subject: [PATCH] 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. --- .cargo/config.toml | 4 ++++ README.md | 2 +- 2 files changed, 5 insertions(+), 1 deletion(-) create mode 100644 .cargo/config.toml diff --git a/.cargo/config.toml b/.cargo/config.toml new file mode 100644 index 00000000..998d09ff --- /dev/null +++ b/.cargo/config.toml @@ -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" } diff --git a/README.md b/README.md index ccd7535b..01ab4551 100644 --- a/README.md +++ b/README.md @@ -40,7 +40,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