mirror of
https://github.com/RGBCube/serenity
synced 2025-07-28 17:07:47 +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:
parent
efcfc8ef7f
commit
3265141286
1 changed files with 4 additions and 0 deletions
|
@ -95,6 +95,10 @@ is_valid_target() {
|
||||||
CMAKE_ARGS+=("-DBUILD_LAGOM=ON")
|
CMAKE_ARGS+=("-DBUILD_LAGOM=ON")
|
||||||
return 0
|
return 0
|
||||||
fi
|
fi
|
||||||
|
if [ "$TARGET" = "x86_64" ]; then
|
||||||
|
CMAKE_ARGS+=("-DSERENITY_ARCH=x86_64")
|
||||||
|
return 0
|
||||||
|
fi
|
||||||
[[ "$TARGET" =~ ^(i686|x86_64|lagom)$ ]] || return 1
|
[[ "$TARGET" =~ ^(i686|x86_64|lagom)$ ]] || return 1
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue