Skip to content

Commit 55ab5b6

Browse files
Fix docs warnings
1 parent f1c4418 commit 55ab5b6

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

README.md

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -109,6 +109,12 @@ between using `cargo test` and `sudo cargo test`. To fix that run `sudo cargo cl
109109
In order to have tests pass when run as `root` or not, some tests need to check if they are `root` at run-time
110110
(using our own `am_root()` function is handy) and avoid failing if *not* run as `root`.
111111

112+
## Macos: clang detection and header file finding
113+
Newer versions of `bindgen` have improved the detection of `clang` and hence macos header files.
114+
If you also have llvm/clang installed directly or via `brew` this may cause the build to fail saying it
115+
cannot find `libproc.h`. This can be fixed by setting `CLANG_PATH="/usr/bin/clang"` so that `bindgen`
116+
detects the Xcode version and hence can fidn the correct header files.
117+
112118
# CI Testing
113119
Continuous Integration testing has been moved from travis-ci to GitHub Actions. For details see the
114120
[rust.yml](`.github/workflows/rust.yml`) GitHub Actions workflow

0 commit comments

Comments
 (0)