1
0
Fork 0
mirror of https://github.com/LadybirdBrowser/ladybird.git synced 2025-06-09 09:34:57 +09:00

Meta: Add a link job pool with a configurable size

Parallel linking (esp. with bfd) uses a huge chunk of memory, make it
possible for users to limit the number of link jobs to at least
limit the pain.
This commit is contained in:
Ali Mohammad Pur 2025-04-06 19:50:28 +02:00 committed by Ali Mohammad Pur
parent ccf03316fa
commit fac2ee4452
Notes: github-actions[bot] 2025-04-08 12:02:44 +00:00
3 changed files with 17 additions and 0 deletions

View file

@ -279,6 +279,17 @@ cmake --build --preset default MyBuildDir
ninja -C MyBuildDir run-ladybird
```
### Building with limited system memory
The default build mode will run as many build steps in parallel as possible, which includes link steps;
this may be an issue for users with limited system memory (or users building with fat LTO in general).
If you wish to reduce the number of parallel link jobs, you may use the LAGOM_LINK_POOL_SIZE cmake option
to set a maximum limit for the number of parallel link jobs.
```
cmake --preset default -B MyBuildDir -DLAGOM_LINK_POOL_SIZE=2
```
### Running manually
The Meta/ladybird.sh script will execute the `run-ladybird` and `debug-ladybird` custom targets.