]> git.bitcoin.ninja Git - ldk-c-bindings/commitdiff
Update build-std parameters
authorMatt Corallo <git@bluematt.me>
Fri, 9 Jul 2021 19:45:36 +0000 (19:45 +0000)
committerMatt Corallo <git@bluematt.me>
Fri, 9 Jul 2021 21:33:53 +0000 (21:33 +0000)
As suggested at https://github.com/rust-lang/wg-cargo-std-aware/issues/71#issuecomment-877403993

genbindings.sh

index 13aa5bd2b382e4dab2ee3607766674b8909aed3f..43ae175cac987b0bd6242ecad733358fde38da2a 100755 (executable)
@@ -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,