From 18bf6be122fc9b9f69e5f62fc9fb22891ddbbd08 Mon Sep 17 00:00:00 2001 From: Dong Bo Date: Sat, 30 Jan 2021 15:18:12 +0800 Subject: [PATCH] feat: add -Zfeatures=itarget to support conditional compilation of dependency feature based on target --- install-filcrypto | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/install-filcrypto b/install-filcrypto index dac54b78..dc56a4d2 100755 --- a/install-filcrypto +++ b/install-filcrypto @@ -150,12 +150,13 @@ build_from_source() { cargo --version # Add feature specific rust flags as needed here. + additional_flags="-Zfeatures=itarget" if [ "${FFI_USE_BLST_PORTABLE}" == "1" ]; then - additional_flags="--no-default-features --features blst --features blst-portable" + additional_flags="--no-default-features --features blst --features blst-portable ${additional_flags}" elif [ "${FFI_USE_BLST}" == "1" ]; then - additional_flags="--no-default-features --features blst" + additional_flags="--no-default-features --features blst ${additional_flags}" else - additional_flags="--no-default-features --features pairing" + additional_flags="--no-default-features --features pairing ${additional_flags}" fi if [ -n "${__release_flags}" ]; then