mirror of
https://github.com/zebrajr/ladybird.git
synced 2025-12-06 00:19:53 +01:00
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:
parent
5e529fc603
commit
3708ac5599
|
|
@ -136,10 +136,10 @@ def main():
|
||||||
sys.exit(1)
|
sys.exit(1)
|
||||||
|
|
||||||
if "target" in args:
|
if "target" in args:
|
||||||
if args.target == "ladybird":
|
if platform.host_system != HostSystem.Windows and 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"):
|
||||||
args.target = "Ladybird"
|
args.target = "ladybird" if platform.host_system == HostSystem.Windows else "Ladybird"
|
||||||
|
|
||||||
if args.command == "build":
|
if args.command == "build":
|
||||||
build_dir = configure_main(platform, args.preset, args.cc, args.cxx)
|
build_dir = configure_main(platform, args.preset, args.cc, args.cxx)
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue
Block a user