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:
parent
aa0fcc67b3
commit
f46f9b0f02
Notes:
github-actions[bot]
2025-05-29 23:34:44 +00:00
Author: https://github.com/trflynn89
Commit: f46f9b0f02
Pull-request: https://github.com/LadybirdBrowser/ladybird/pull/4904
Reviewed-by: https://github.com/ADKaster
1 changed files with 3 additions and 1 deletions
|
@ -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)
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue