Skip to content

Commit

Permalink
PR feedback
Browse files Browse the repository at this point in the history
  • Loading branch information
buggmagnet committed Mar 14, 2024
1 parent 04dd86b commit 4d7e5ef
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion ios/build-rust-library.sh
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

set -euvx

if [ "$#" -gt 2 ]
if [ "$#" -gt 2 ] || [ "$#" -eq 0 ]
then
echo "Usage (note: only call inside xcode!):"
echo "build-rust-library.sh <FFI_TARGET> [FFI_FEATURES]"
Expand All @@ -13,6 +13,8 @@ fi
FFI_TARGET=$1

# Enable cargo features by passing feature names to this script, i.e. build-rust-library.sh mullvad-api api-override
# If more than one feature flag needs to be enabled, pass in a single argument all the features flags separated by spaces
# build-rust-library.sh mullvad-api "featureA featureB featureC"
FEATURE_FLAGS=
if [[ "$#" -eq 2 ]] ; then
FEATURE_FLAGS=$2
Expand Down

0 comments on commit 4d7e5ef

Please sign in to comment.