From e9581b87bae7a39f22245892d5fad1869d2d2f03 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Robert=20M=C3=BCller?= Date: Sat, 11 May 2024 18:05:54 +0200 Subject: [PATCH] Ensure specified target system for buiding libraries is valid Abort building libraries if the specified target system is not one of the supported values. --- scripts/compile_libs/gen_libs.sh | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/scripts/compile_libs/gen_libs.sh b/scripts/compile_libs/gen_libs.sh index c27455e52..8a5b13843 100755 --- a/scripts/compile_libs/gen_libs.sh +++ b/scripts/compile_libs/gen_libs.sh @@ -7,7 +7,7 @@ if [ -z ${1+x} ]; then fi if [ -z ${2+x} ]; then - echo "Specify the target system" + echo "Specify the target system: android, linux, window, webasm" exit 1 fi @@ -38,6 +38,9 @@ elif [[ "${OS_NAME}" == "windows" ]]; then COMP_HAS_x64=1 elif [[ "${OS_NAME}" == "webasm" ]]; then COMP_HAS_WEBASM=1 +else + echo "Specify the target system: android, linux, window, webasm" + exit 1 fi mkdir -p "$1"