Skip to content

Commit 6b865b8

Browse files
ericktemilio
authored andcommitted
Add libcpp feature
This adds a `libcpp` feature, which in turn enables `libcpp` from the `clang-sys` crate. This allows bindgen to use `libc++` from LLVM instead of the system c++ standard library.
1 parent 5b1b56d commit 6b865b8

2 files changed

Lines changed: 2 additions & 0 deletions

File tree

bindgen-cli/Cargo.toml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -32,6 +32,7 @@ shlex.workspace = true
3232
default = ["logging", "runtime"]
3333
logging = ["bindgen/logging", "dep:env_logger", "dep:log"]
3434
static = ["bindgen/static"]
35+
libcpp = ["bindgen/libcpp"]
3536
runtime = ["bindgen/runtime"]
3637
prettyplease = ["bindgen/prettyplease"]
3738

bindgen/Cargo.toml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -46,6 +46,7 @@ syn = { workspace = true, features = ["full", "extra-traits", "visit-mut"] }
4646
default = ["logging", "prettyplease", "runtime"]
4747
logging = ["dep:log"]
4848
static = ["clang-sys/static"]
49+
libcpp = ["clang-sys/libcpp"]
4950
runtime = ["clang-sys/runtime"]
5051
experimental = ["dep:annotate-snippets"]
5152

0 commit comments

Comments
 (0)