Meta: Don't assume all build commands have a target

For example, the "test" and "vcpkg" build commands do not.
This commit is contained in:
Timothy Flynn 2025-05-29 17:37:07 -04:00 committed by Tim Flynn
commit 6345ebb78c
Notes: github-actions[bot] 2025-05-30 10:42:00 +00:00

View file

@ -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)