Skip to content

Commit c29a0ac

Browse files
committed
PR feedback
1 parent a9fee5e commit c29a0ac

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

ios/build-rust-library.sh

+3-1
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22

33
set -euvx
44

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

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

0 commit comments

Comments
 (0)