mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-08-07 00:29:15 +00:00
Meta: Don't check for toolchain if serenity.sh target is lagom
This is just silly :^) $ serenity run lagom js WARNING: unknown toolchain 'js'. Defaulting to GNU. Valid values are 'Clang', 'GNU' (default)
This commit is contained in:
parent
0909bbfe38
commit
897471c852
Notes:
sideshowbarker
2024-07-18 01:37:30 +09:00
Author: https://github.com/linusg
Commit: 897471c852
Pull-request: https://github.com/SerenityOS/serenity/pull/10744
Reviewed-by: https://github.com/EWouters ✅
1 changed files with 18 additions and 13 deletions
|
@ -88,6 +88,10 @@ else
|
|||
TARGET="${SERENITY_ARCH:-"i686"}"
|
||||
fi
|
||||
|
||||
CMAKE_ARGS=()
|
||||
|
||||
# Toolchain selection only applies to non-lagom targets.
|
||||
if [ "$TARGET" != "lagom" ]; then
|
||||
case "$1" in
|
||||
GNU|Clang)
|
||||
TOOLCHAIN_TYPE="$1"; shift
|
||||
|
@ -100,9 +104,10 @@ case "$1" in
|
|||
TOOLCHAIN_TYPE="GNU"
|
||||
;;
|
||||
esac
|
||||
CMAKE_ARGS+=( "-DSERENITY_TOOLCHAIN=$TOOLCHAIN_TYPE" )
|
||||
fi
|
||||
|
||||
CMD_ARGS=( "$@" )
|
||||
CMAKE_ARGS=( "-DSERENITY_TOOLCHAIN=$TOOLCHAIN_TYPE" )
|
||||
|
||||
get_top_dir() {
|
||||
git rev-parse --show-toplevel
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue