From: Matt Corallo Date: Fri, 9 Jul 2021 19:45:36 +0000 (+0000) Subject: Update build-std parameters X-Git-Tag: v0.0.99.1^2 X-Git-Url: http://git.bitcoin.ninja/index.cgi?p=ldk-c-bindings;a=commitdiff_plain;h=78f82dc860399c06bb874832209d47a748d183d9 Update build-std parameters As suggested at https://github.com/rust-lang/wg-cargo-std-aware/issues/71#issuecomment-877403993 --- diff --git a/genbindings.sh b/genbindings.sh index 13aa5bd..43ae175 100755 --- a/genbindings.sh +++ b/genbindings.sh @@ -242,7 +242,7 @@ if [ "$HOST_PLATFORM" = "host: x86_64-unknown-linux-gnu" ]; then LLVM_V=$(rustc +nightly --version --verbose | grep "LLVM version" | awk '{ print substr($3, 0, 2); }') if [ -x "$(which clang-$LLVM_V)" ]; then cargo +nightly clean - cargo +nightly rustc -Zbuild-std --target x86_64-unknown-linux-gnu -v -- -Zsanitizer=memory -Zsanitizer-memory-track-origins -Cforce-frame-pointers=yes + cargo +nightly rustc -Zbuild-std=std,panic_abort --target x86_64-unknown-linux-gnu -v -- -Zsanitizer=memory -Zsanitizer-memory-track-origins -Cforce-frame-pointers=yes mv target/x86_64-unknown-linux-gnu/debug/libldk.* target/debug/ # Sadly, std doesn't seem to compile into something that is memsan-safe as of Aug 2020,