mirror of
https://github.com/RGBCube/serenity
synced 2025-07-27 00:47:45 +00:00
Meta: Remove duplicate valid target check from serenity.sh
This commit is contained in:
parent
2b70f32876
commit
747af8a031
1 changed files with 7 additions and 3 deletions
|
@ -98,15 +98,19 @@ is_valid_target() {
|
||||||
CMAKE_ARGS+=("-DSERENITY_ARCH=aarch64")
|
CMAKE_ARGS+=("-DSERENITY_ARCH=aarch64")
|
||||||
return 0
|
return 0
|
||||||
fi
|
fi
|
||||||
if [ "$TARGET" = "lagom" ]; then
|
if [ "$TARGET" = "i686" ]; then
|
||||||
CMAKE_ARGS+=("-DBUILD_LAGOM=ON")
|
CMAKE_ARGS+=("-DSERENITY_ARCH=i686")
|
||||||
return 0
|
return 0
|
||||||
fi
|
fi
|
||||||
if [ "$TARGET" = "x86_64" ]; then
|
if [ "$TARGET" = "x86_64" ]; then
|
||||||
CMAKE_ARGS+=("-DSERENITY_ARCH=x86_64")
|
CMAKE_ARGS+=("-DSERENITY_ARCH=x86_64")
|
||||||
return 0
|
return 0
|
||||||
fi
|
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() {
|
create_build_dir() {
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue