diff options
| author | kaixindeken <ra.zhang@hl-it.cn> | 2023-11-27 15:17:36 +0800 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2023-11-27 08:17:36 +0100 |
| commit | 507eb1c786681fcd5a235f01a60626d54929dd76 (patch) | |
| tree | 18c738898d89f8372c36a1e9c132b1123b886703 /docs/COMPILE.md | |
| parent | 04f8ab38710721adbeb2dba7cada334d6c7058e7 (diff) | |
| download | box64-507eb1c786681fcd5a235f01a60626d54929dd76.tar.gz box64-507eb1c786681fcd5a235f01a60626d54929dd76.zip | |
[DOCS] Add mold usage to COMPILE.md (#1089)
* Add mold usage to COMPILE.md * add Mold usage to COMPILE.md
Diffstat (limited to 'docs/COMPILE.md')
| -rw-r--r-- | docs/COMPILE.md | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/docs/COMPILE.md b/docs/COMPILE.md index c84bf958..6ae17e42 100644 --- a/docs/COMPILE.md +++ b/docs/COMPILE.md @@ -211,6 +211,10 @@ You can use ` -DSAVE_MEM` to have a build that will try to save some memory. It' If you are not building from a git clone (for example, downloading a release source code zip from github), you need to use `-DNOGIT=1` from cmake to be able to build (box64 uses git SHA1 to show last commit in version number). +#### Use faster linker + +You need to add `-DWITH_MOLD=1` if GNU ld is extremely slow. Then run `mold -run make -j4` to build (make sure [Mold](https://github.com/rui314/mold) is installed). + ---- Testing |