Skip to content

Commit

Permalink
feat: add -Zfeatures=itarget to support conditional compilation of de…
Browse files Browse the repository at this point in the history
…pendency feature based on target
  • Loading branch information
dgbo committed Mar 6, 2021
1 parent b6e0b35 commit 18bf6be
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions install-filcrypto
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 18bf6be

Please sign in to comment.