1
0
Fork 0
mirror of https://github.com/LadybirdBrowser/ladybird.git synced 2025-06-08 05:27:14 +09:00

Meta: Restore default "build everything" behavior in ladybird.py

By default, we want `ladybird.py build` to build everything. We were
previously defaulting to only building the Ladybird target.

We now only fall back to the Ladybird target for commands that run a
program. So `ladybird.py run` will build and run Ladybird.
This commit is contained in:
Timothy Flynn 2025-05-29 13:47:03 -04:00 committed by Tim Flynn
parent aa0fcc67b3
commit f46f9b0f02
Notes: github-actions[bot] 2025-05-29 23:34:44 +00:00

View file

@ -47,7 +47,7 @@ def main():
compiler_parser.add_argument("--cxx", required=False, default=default_cxx)
target_parser = argparse.ArgumentParser(add_help=False)
target_parser.add_argument("target", nargs=argparse.OPTIONAL, default="Ladybird")
target_parser.add_argument("target", nargs=argparse.OPTIONAL)
build_parser = subparsers.add_parser(
"build", help="Compiles the target binaries", parents=[preset_parser, compiler_parser, target_parser]
@ -122,6 +122,8 @@ def main():
if args.target == "ladybird":
args.target = "Ladybird"
if not args.target and args.command not in ("build", "rebuild"):
args.target = "Ladybird"
(cc, cxx) = pick_host_compiler(platform, args.cc, args.cxx)