1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-07-26 00:07:43 +00:00

Meta: Add a rebuild-world command to serenity.sh

This was brought up as something that would be useful by
`RealKC` on the discord, and I happened to agree that it
would be useful. Especially given the abundance of Toolchain
changes recently.
This commit is contained in:
Brian Gianforcaro 2021-04-19 21:29:10 -07:00 committed by Andreas Kling
parent c195ee6fd2
commit 8f6a5a1c39

View file

@ -39,6 +39,7 @@ Usage: $NAME COMMAND [TARGET] [ARGS...]
Resolves the ADDRESS in BINARY_FILE to a file:line. It will
attempt to find the BINARY_FILE in the appropriate build directory
rebuild-toolchain: Deletes and re-builds the TARGET's toolchain
rebuild-world: Deletes and re-builds the toolchain and build environment for TARGET.
Examples:
$NAME run i686 smp=on
@ -307,6 +308,14 @@ elif [ "$CMD" = "rebuild-toolchain" ]; then
lagom_unsupported "The lagom target uses the host toolchain"
delete_toolchain
ensure_toolchain
elif [ "$CMD" = "rebuild-world" ]; then
cmd_with_target
lagom_unsupported "The lagom target uses the host toolchain"
delete_toolchain
delete_target
ensure_toolchain
ensure_target
build_target
elif [ "$CMD" = "__tmux_cmd" ]; then
trap kill_tmux_session EXIT
cmd_with_target