1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-07-28 03:47:34 +00:00

Meta: Make serenity.sh pass the SERENITY_ARCH cmake argument for x86_64

This is required as our CMake config defaults to i686 if not overriden
manually via the SERENITY_ARCH argument.
This commit is contained in:
Idan Horowitz 2021-07-01 15:18:26 +03:00 committed by Andreas Kling
parent efcfc8ef7f
commit 3265141286

View file

@ -95,6 +95,10 @@ is_valid_target() {
CMAKE_ARGS+=("-DBUILD_LAGOM=ON")
return 0
fi
if [ "$TARGET" = "x86_64" ]; then
CMAKE_ARGS+=("-DSERENITY_ARCH=x86_64")
return 0
fi
[[ "$TARGET" =~ ^(i686|x86_64|lagom)$ ]] || return 1
}