1
1
mirror of https://github.com/rui314/mold.git synced 2024-08-17 00:40:36 +03:00

Update README.md

This commit is contained in:
Rui Ueyama 2024-03-28 13:08:53 +09:00 committed by GitHub
parent a9e76295ff
commit 9bb1a8207a
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -60,14 +60,12 @@ necessary packages. You may need to run it as root.
### Compile mold ### Compile mold
```shell ```shell
git clone https://github.com/rui314/mold.git git clone --branch stable https://github.com/rui314/mold.git
mkdir mold/build cd mold
cd mold/build ./install-build-deps.sh
git checkout stable cmake -DCMAKE_BUILD_TYPE=Release -DCMAKE_CXX_COMPILER=c++ -B build
../install-build-deps.sh cmake --build build -j$(nproc)
cmake -DCMAKE_BUILD_TYPE=Release -DCMAKE_CXX_COMPILER=c++ .. sudo cmake --build build --target install
cmake --build . -j $(nproc)
sudo cmake --build . --target install
``` ```
You might need to pass a C++20 compiler command name to `cmake`. In the You might need to pass a C++20 compiler command name to `cmake`. In the