KyleMayes / clang-sys

Rust bindings for libclang.
Apache License 2.0
128 stars 65 forks source link

Support LLVM libc++ #168

Closed theoparis closed 1 month ago

theoparis commented 4 months ago

Bindgen fails to build due to the following line. I use libc++ and it tries to link against libstdc++.

https://github.com/KyleMayes/clang-sys/blob/f76ca0660206f2d4a25ec063fb49e77920b68f4a/build/static.rs#L132

KyleMayes commented 1 month ago

I added a libcpp Cargo feature that enables linking to libc++ instead of libstd++ on Linux / Haiku. This has just been released in v1.8.0.