summaryrefslogtreecommitdiff
path: root/TestScripts/cryptest-ios.sh
diff options
context:
space:
mode:
Diffstat (limited to 'TestScripts/cryptest-ios.sh')
-rwxr-xr-xTestScripts/cryptest-ios.sh7
1 files changed, 6 insertions, 1 deletions
diff --git a/TestScripts/cryptest-ios.sh b/TestScripts/cryptest-ios.sh
index bd0fd2e2..8fdf4725 100755
--- a/TestScripts/cryptest-ios.sh
+++ b/TestScripts/cryptest-ios.sh
@@ -10,7 +10,12 @@
# See http://www.cryptopp.com/wiki/iOS_(Command_Line) for more details
# ====================================================================
-PLATFORMS=(iPhoneOS iPhoneSimulator WatchOS WatchSimulator AppleTVOS AppleTVSimulator)
+if [ -z "${PLATFORM-}" ]; then
+ PLATFORMS=(iPhoneOS iPhoneSimulator WatchOS WatchSimulator AppleTVOS AppleTVSimulator)
+else
+ PLATFORMS=(${PLATFORM})
+fi
+
for platform in ${PLATFORMS[@]}
do
make -f GNUmakefile-cross distclean > /dev/null 2>&1