Use libc++ (clang) rather than libstdc++ (gcc)

This commit is contained in:
teor 2023-05-02 10:44:25 +10:00
parent 082ff24af3
commit e18ff48cba
3 changed files with 9 additions and 0 deletions

View File

@ -17,6 +17,7 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
- Update other dependencies to match Zebra
### Fixed
- Switch to using `clang`'s `libc++`, rather than `gcc`'s `libstdc++`, to [match `zcashd`'s behaviour](https://github.com/zcash/zcash/blob/master/doc/release-notes/release-notes-4.1.0.md#migration-to-clang-and-static-libc)
- Improve error reporting in `build.rs`
## [0.1.11] - 2023-02-24

View File

@ -73,6 +73,10 @@ zcash_note_encryption = "0.3"
zcash_primitives = { version = "0.11", features = ["temporary-zcashd", "transparent-inputs"] }
zcash_proofs = "0.11"
# This dependency makes `zcash_script` use the same C++ library as `zcashd`:
# https://github.com/zcash/zcash/blob/master/doc/release-notes/release-notes-4.1.0.md#migration-to-clang-and-static-libc
link-cplusplus = { version = "1.0", features = ["libc++"] }
[build-dependencies]
# The `bindgen` dependency should automatically upgrade to match the version used by zebra-state's `rocksdb` dependency in:
# https://github.com/ZcashFoundation/zebra/blob/main/zebra-state/Cargo.toml

View File

@ -8,6 +8,10 @@
#![allow(unsafe_code)]
#![allow(unused_imports)]
/// This dependency makes `zcash_script` use the same C++ library as `zcashd`:
/// https://github.com/zcash/zcash/blob/master/doc/release-notes/release-notes-4.1.0.md#migration-to-c
extern crate link_cplusplus;
// Use the generated C++ bindings
include!(concat!(env!("OUT_DIR"), "/bindings.rs"));