summaryrefslogtreecommitdiff
path: root/Meta
diff options
context:
space:
mode:
authorLinus Groh <mail@linusgroh.de>2021-08-29 13:50:07 +0100
committerLinus Groh <mail@linusgroh.de>2021-08-29 13:50:07 +0100
commit747af8a031bf5d19783fa8616ea5eed6774fae6a (patch)
tree1b0d44ac0b6a4e62b11749caf5f85c0bb53232e8 /Meta
parent2b70f3287694bd52f155e0a2b2d7bb5608fcd345 (diff)
downloadserenity-747af8a031bf5d19783fa8616ea5eed6774fae6a.zip
Meta: Remove duplicate valid target check from serenity.sh
Diffstat (limited to 'Meta')
-rwxr-xr-xMeta/serenity.sh10
1 files changed, 7 insertions, 3 deletions
diff --git a/Meta/serenity.sh b/Meta/serenity.sh
index c15d52dcee..714900f920 100755
--- a/Meta/serenity.sh
+++ b/Meta/serenity.sh
@@ -98,15 +98,19 @@ is_valid_target() {
CMAKE_ARGS+=("-DSERENITY_ARCH=aarch64")
return 0
fi
- if [ "$TARGET" = "lagom" ]; then
- CMAKE_ARGS+=("-DBUILD_LAGOM=ON")
+ if [ "$TARGET" = "i686" ]; then
+ CMAKE_ARGS+=("-DSERENITY_ARCH=i686")
return 0
fi
if [ "$TARGET" = "x86_64" ]; then
CMAKE_ARGS+=("-DSERENITY_ARCH=x86_64")
return 0
fi
- [[ "$TARGET" =~ ^(i686|x86_64|lagom)$ ]] || return 1
+ if [ "$TARGET" = "lagom" ]; then
+ CMAKE_ARGS+=("-DBUILD_LAGOM=ON")
+ return 0
+ fi
+ return 1
}
create_build_dir() {