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:
parent
a9e76295ff
commit
9bb1a8207a
14
README.md
14
README.md
@ -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
|
||||||
|
Loading…
Reference in New Issue
Block a user