mirror of
https://github.com/SerenityOS/serenity.git
synced 2025-01-23 09:51:57 -05:00
Meta: Make serenity.sh
invoke cmake
when build.ninja
is missing
This commit is contained in:
parent
996f69a1b2
commit
468bb54677
1 changed files with 2 additions and 4 deletions
|
@ -118,7 +118,7 @@ cmd_with_target() {
|
|||
}
|
||||
|
||||
ensure_target() {
|
||||
[ -d "$BUILD_DIR" ] || create_build_dir
|
||||
[ -f "$BUILD_DIR/build.ninja" ] || create_build_dir
|
||||
}
|
||||
|
||||
run_tests() {
|
||||
|
@ -209,9 +209,7 @@ run_gdb() {
|
|||
if [[ "$CMD" =~ ^(build|install|image|run|gdb|test|rebuild|recreate|kaddr2line|addr2line|setup-and-run)$ ]]; then
|
||||
cmd_with_target
|
||||
[[ "$CMD" != "recreate" && "$CMD" != "rebuild" ]] || delete_target
|
||||
# FIXME: We should probably call ensure_toolchain first, but this somehow causes
|
||||
# this error after the toolchain finished building:
|
||||
# ninja: error: loading 'build.ninja': No such file or directory
|
||||
ensure_toolchain
|
||||
ensure_target
|
||||
[ "$TARGET" = "lagom" ] || ensure_toolchain
|
||||
case "$CMD" in
|
||||
|
|
Loading…
Add table
Reference in a new issue