mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-06-09 09:34:57 +09:00
Meta: Invoke ninja directly instead of cmake --build
This shaves about 10ms off an invocation of `ladybird.py build` on my machine, going from ~180ms to ~170ms.
This commit is contained in:
parent
52ba40f161
commit
16743ee9d9
Notes:
github-actions[bot]
2025-05-30 16:55:33 +00:00
Author: https://github.com/trflynn89
Commit: 16743ee9d9
Pull-request: https://github.com/LadybirdBrowser/ladybird/pull/4931
1 changed files with 5 additions and 4 deletions
|
@ -310,14 +310,15 @@ def ensure_ladybird_source_dir() -> Path:
|
|||
|
||||
def build_main(build_dir: Path, target: Optional[str] = None, args: list[str] = []):
|
||||
build_args = [
|
||||
"cmake",
|
||||
"--build",
|
||||
"ninja",
|
||||
"-C",
|
||||
str(build_dir),
|
||||
"--parallel",
|
||||
"-j",
|
||||
os.environ.get("MAKEJOBS", str(multiprocessing.cpu_count())),
|
||||
]
|
||||
|
||||
if target:
|
||||
build_args.extend(["--target", target])
|
||||
build_args.append(target)
|
||||
|
||||
if args:
|
||||
build_args.append("--")
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue