You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
When running on GH Actions macos-14 (aka. macos-latest), there are two ways to use the libclang provided by brew install llvm@19.
Enable the runtime feature.
export DYLD_LIBRARY_PATH=$(/opt/homebrew/opt/llvm@19/bin/llvm-config --libdir) without the runtime feature
When using bindgen from build.rs, which is going to give users a better experience?
Note that there have been issues (such as twistedfall/opencv-rust#462 (comment)) when the runtime feature is used inconsistently between crates. On Linux and Windows (using libclang from apt and chocolatey respectively), we have found that the runtime feature is unnecessary and harmless.
This comes back to how clang-syshandles linking, but I think bindgen should make a clear a recommendation about this feature.
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
Uh oh!
There was an error while loading. Please reload this page.
-
When running on GH Actions
macos-14
(aka.macos-latest
), there are two ways to use the libclang provided bybrew install llvm@19
.runtime
feature.DYLD_LIBRARY_PATH=$(/opt/homebrew/opt/llvm@19/bin/llvm-config --libdir)
without theruntime
featureWhen using bindgen from
build.rs
, which is going to give users a better experience?Note that there have been issues (such as twistedfall/opencv-rust#462 (comment)) when the
runtime
feature is used inconsistently between crates. On Linux and Windows (using libclang from apt and chocolatey respectively), we have found that theruntime
feature is unnecessary and harmless.This comes back to how
clang-sys
handles linking, but I thinkbindgen
should make a clear a recommendation about this feature.Beta Was this translation helpful? Give feedback.
All reactions