mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2024-12-04 05:20:30 +00:00
Toolchain: Update BuildMold to mold 1.5.1 and use CMake
Per the release notes for 1.5.0, the CMake build is preferred going forward.
This commit is contained in:
parent
32c9be30dc
commit
9c32b9ea3c
Notes:
sideshowbarker
2024-07-17 06:24:39 +09:00
Author: https://github.com/ADKaster Commit: https://github.com/SerenityOS/serenity/commit/9c32b9ea3c Pull-request: https://github.com/SerenityOS/serenity/pull/15453
1 changed files with 4 additions and 5 deletions
|
@ -29,15 +29,14 @@ if [ "$1" = "--git" ]; then
|
|||
|
||||
git pull
|
||||
else
|
||||
VERSION=1.3.1
|
||||
VERSION=1.5.1
|
||||
[ ! -e mold-$VERSION.tar.gz ] && curl -L "https://github.com/rui314/mold/archive/refs/tags/v$VERSION.tar.gz" -o mold-$VERSION.tar.gz
|
||||
[ ! -e mold-$VERSION ] && tar -xzf mold-$VERSION.tar.gz
|
||||
cd mold-$VERSION
|
||||
fi
|
||||
|
||||
make clean
|
||||
export DESTDIR="$DIR"/Local/mold
|
||||
make -j "$MAKEJOBS"
|
||||
make install PREFIX=
|
||||
MOLD_BUILD="$DIR"/Build/mold
|
||||
cmake -B "$MOLD_BUILD" -S. -DCMAKE_INSTALL_PREFIX="$DIR"/Local/mold
|
||||
make -C "$MOLD_BUILD" install -j"$MAKEJOBS"
|
||||
|
||||
popd
|
||||
|
|
Loading…
Reference in a new issue