Meta: Use non-aliased "ladybird" ninja target on Windows in ladybird.py

When attempting to use "Ladybird" as the target passed to ninja, we get
"ninja: error: unknown target 'Ladybird', did you mean 'ladybird'?".

Note that "ladybird" also works on Unix; however, given the alias was
carried over from ladybird.sh for convenience, we will keep it in place
for non-Windows builds.
This commit is contained in:
ayeteadoe 2025-10-07 14:20:07 -07:00 committed by Andrew Kaster
parent 5e529fc603
commit 3708ac5599

View File

@ -136,10 +136,10 @@ def main():
sys.exit(1)
if "target" in args:
if args.target == "ladybird":
if platform.host_system != HostSystem.Windows and args.target == "ladybird":
args.target = "Ladybird"
if not args.target and args.command not in ("build", "rebuild"):
args.target = "Ladybird"
args.target = "ladybird" if platform.host_system == HostSystem.Windows else "Ladybird"
if args.command == "build":
build_dir = configure_main(platform, args.preset, args.cc, args.cxx)