From 6345ebb78cbccc9aa8cfa5002ed454db580f55ac Mon Sep 17 00:00:00 2001 From: Timothy Flynn Date: Thu, 29 May 2025 17:37:07 -0400 Subject: [PATCH] Meta: Don't assume all build commands have a target For example, the "test" and "vcpkg" build commands do not. --- Meta/ladybird.py | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/Meta/ladybird.py b/Meta/ladybird.py index c06d0837f4d..5e4b1c054d1 100755 --- a/Meta/ladybird.py +++ b/Meta/ladybird.py @@ -120,10 +120,11 @@ def main(): print("ladybird.py must be run from a Visual Studio enabled environment", file=sys.stderr) sys.exit(1) - if args.target == "ladybird": - args.target = "Ladybird" - if not args.target and args.command not in ("build", "rebuild"): - args.target = "Ladybird" + if "target" in args: + 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)