• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1#!/usr/bin/env bash
2
3set -ex
4
5MOLD_VERSION="1.11.0"
6
7git clone -b v"$MOLD_VERSION" --single-branch --depth 1 https://github.com/rui314/mold.git
8pushd mold
9
10cmake -DCMAKE_BUILD_TYPE=Release -D BUILD_TESTING=OFF -D MOLD_LTO=ON
11cmake --build . --parallel
12cmake --install .
13
14popd
15rm -rf mold
16