summaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
authorBug Magnet <marco.nikic@mullvad.net>2024-03-12 13:57:16 +0100
committerBug Magnet <marco.nikic@mullvad.net>2024-03-14 08:35:59 +0100
commit4d7e5efc235512d07537ea7b17d77d8a7eb0451c (patch)
tree8648380204dd18712c6c9f3189f4cc3301955309
parent04dd86b2d0f91b3f2ccd4874c820720c72a33a96 (diff)
downloadmullvadvpn-4d7e5efc235512d07537ea7b17d77d8a7eb0451c.tar.xz
mullvadvpn-4d7e5efc235512d07537ea7b17d77d8a7eb0451c.zip
PR feedback
-rw-r--r--ios/build-rust-library.sh4
1 files changed, 3 insertions, 1 deletions
diff --git a/ios/build-rust-library.sh b/ios/build-rust-library.sh
index b8b8ee05a8..5de58559b0 100644
--- a/ios/build-rust-library.sh
+++ b/ios/build-rust-library.sh
@@ -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]"
@@ -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