Skip to content

Commit 95ad47c

Browse files
committed
Bump mold version to 1.5.0
1 parent 9db16a8 commit 95ad47c

4 files changed

Lines changed: 19 additions & 14 deletions

File tree

CMakeLists.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
cmake_minimum_required(VERSION 3.13)
2-
project(mold VERSION 1.4.2)
2+
project(mold VERSION 1.5.0)
33

44
include(CMakeDependentOption)
55
include(GNUInstallDirs)

Makefile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
VERSION = 1.4.2
1+
VERSION = 1.5.0
22

33
PREFIX = /usr/local
44
BINDIR = $(PREFIX)/bin

README.md

Lines changed: 14 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -61,25 +61,28 @@ necessary packages. You may want to run it as root.
6161

6262
```shell
6363
git clone https://github.com/rui314/mold.git
64-
cd mold
65-
git checkout v1.4.2
66-
make -j$(nproc) CXX=clang++
67-
sudo make install
64+
mkdir mold/build
65+
cd mold/build
66+
git checkout v1.5.0
67+
../install-build-deps.sh
68+
cmake -DCMAKE_BUILD_TYPE=Release -DCMAKE_CXX_COMPILER=c++ ..
69+
cmake --build . -j $(nproc)
70+
sudo cmake --install .
6871
```
6972

70-
You may need to pass a C++20 compiler command name to `make`.
71-
In the above case, `clang++` is passed. If it doesn't work for you,
73+
You may need to pass a C++20 compiler command name to `cmake`.
74+
In the above case, `c++` is passed. If it doesn't work for you,
7275
try a specific version of a compiler such as `g++-10` or `clang++-12`.
7376

7477
By default, `mold` is installed to `/usr/local/bin`.
7578

7679
If you don't use a recent enough Linux distribution, or if for any reason
77-
`make` in the above commands doesn't work for you, you can use Docker to
80+
`cmake` in the above commands doesn't work for you, you can use Docker to
7881
build it in a Docker environment. To do so, just run `./dist.sh` in this
79-
directory instead of running `make -j$(nproc)`. The shell script pulls a
80-
Docker image, builds mold and auxiliary files inside it, and packs
81-
them into a single tar file `mold-$version-$arch-linux.tar.gz`.
82-
You can extract the tar file anywhere and use `mold` executable in it.
82+
directory instead of `cmake`. The shell script pulls a Docker image,
83+
builds mold and auxiliary files inside it, and packs them into a
84+
single tar file `mold-$version-$arch-linux.tar.gz`. You can extract
85+
the tar file anywhere and use `mold` executable in it.
8386

8487
## How to use
8588

install-build-deps.sh

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,9 @@
1-
#!/bin/bash -x
1+
#!/bin/bash
22
set -e
33
source /etc/os-release
44

5+
set -x
6+
57
# The first line for each distro installs a build dependency.
68
# The second line installs extra packages for `make test`.
79
#

0 commit comments

Comments
 (0)