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:
parent
ccf03316fa
commit
fac2ee4452
Notes:
github-actions[bot]
2025-04-08 12:02:44 +00:00
Author: https://github.com/alimpfard
Commit: fac2ee4452
Pull-request: https://github.com/LadybirdBrowser/ladybird/pull/4256
Reviewed-by: https://github.com/R-Goc
3 changed files with 17 additions and 0 deletions
|
@ -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.
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue