From 78f82dc860399c06bb874832209d47a748d183d9 Mon Sep 17 00:00:00 2001 From: Matt Corallo Date: Fri, 9 Jul 2021 19:45:36 +0000 Subject: [PATCH] Update build-std parameters As suggested at https://github.com/rust-lang/wg-cargo-std-aware/issues/71#issuecomment-877403993 --- genbindings.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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, -- 2.30.2