Skip to content

Commit

Permalink
Bump mold version to 1.5.0
Browse files Browse the repository at this point in the history
  • Loading branch information
rui314 committed Sep 27, 2022
1 parent 9db16a8 commit 95ad47c
Show file tree
Hide file tree
Showing 4 changed files with 19 additions and 14 deletions.
2 changes: 1 addition & 1 deletion CMakeLists.txt
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
cmake_minimum_required(VERSION 3.13)
project(mold VERSION 1.4.2)
project(mold VERSION 1.5.0)

include(CMakeDependentOption)
include(GNUInstallDirs)
Expand Down
2 changes: 1 addition & 1 deletion Makefile
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
VERSION = 1.4.2
VERSION = 1.5.0

PREFIX = /usr/local
BINDIR = $(PREFIX)/bin
Expand Down
25 changes: 14 additions & 11 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -61,25 +61,28 @@ necessary packages. You may want to run it as root.

```shell
git clone https://github.com/rui314/mold.git
cd mold
git checkout v1.4.2
make -j$(nproc) CXX=clang++
sudo make install
mkdir mold/build
cd mold/build
git checkout v1.5.0
../install-build-deps.sh
cmake -DCMAKE_BUILD_TYPE=Release -DCMAKE_CXX_COMPILER=c++ ..
cmake --build . -j $(nproc)
sudo cmake --install .
```

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

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

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

## How to use

Expand Down
4 changes: 3 additions & 1 deletion install-build-deps.sh
Original file line number Diff line number Diff line change
@@ -1,7 +1,9 @@
#!/bin/bash -x
#!/bin/bash
set -e
source /etc/os-release

set -x

# The first line for each distro installs a build dependency.
# The second line installs extra packages for `make test`.
#
Expand Down

0 comments on commit 95ad47c

Please sign in to comment.