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,6 +120,7 @@ def main():
print("ladybird.py must be run from a Visual Studio enabled environment", file=sys.stderr) print("ladybird.py must be run from a Visual Studio enabled environment", file=sys.stderr)
sys.exit(1) sys.exit(1)
if "target" in args:
if args.target == "ladybird": if args.target == "ladybird":
args.target = "Ladybird" args.target = "Ladybird"
if not args.target and args.command not in ("build", "rebuild"): if not args.target and args.command not in ("build", "rebuild"):