From 3708ac55998fbdbb4708074063f8c4bee944c86a Mon Sep 17 00:00:00 2001 From: ayeteadoe Date: Tue, 7 Oct 2025 14:20:07 -0700 Subject: [PATCH] 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. --- Meta/ladybird.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Meta/ladybird.py b/Meta/ladybird.py index bf262c853d..050b42ab9d 100755 --- a/Meta/ladybird.py +++ b/Meta/ladybird.py @@ -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)