2022-12-30 12:37:59 +00:00
|
|
|
#!/usr/bin/env bash
|
2022-07-27 16:38:09 +01:00
|
|
|
|
|
|
|
set -ex
|
2022-09-27 09:45:25 +01:00
|
|
|
|
2023-01-20 21:02:45 +00:00
|
|
|
MOLD_VERSION="1.10.0"
|
2022-09-27 09:45:25 +01:00
|
|
|
|
2022-07-27 16:38:09 +01:00
|
|
|
git clone -b v"$MOLD_VERSION" --single-branch --depth 1 https://github.com/rui314/mold.git
|
2022-12-30 12:37:59 +00:00
|
|
|
pushd mold
|
|
|
|
cmake -DCMAKE_BUILD_TYPE=Release -D BUILD_TESTING=OFF -D MOLD_LTO=ON
|
|
|
|
cmake --build . --parallel
|
|
|
|
cmake --install .
|
|
|
|
popd
|
2022-07-27 16:38:09 +01:00
|
|
|
rm -rf mold
|