Skip to content

Commit

Permalink
[mold] Update to v1.11 (#6877)
Browse files Browse the repository at this point in the history
  • Loading branch information
giordano authored Jun 12, 2023
1 parent ffb57c4 commit e8a69fe
Showing 1 changed file with 14 additions and 4 deletions.
18 changes: 14 additions & 4 deletions M/mold/build_tarballs.jl
Original file line number Diff line number Diff line change
Expand Up @@ -3,18 +3,28 @@
using BinaryBuilder, Pkg

name = "mold"
version = v"1.2.0"
version = v"1.11.0"

# Collection of sources required to complete build
sources = [
GitSource("https://github.com/rui314/mold.git", "1f55e40a8a967894816d6366bcc3d08de74c84b4")
GitSource("https://github.com/rui314/mold.git",
"cca255e6be069cdbc135c83fd16036d86b98b85e")
]

# Bash recipe for building across all platforms
script = raw"""
cd $WORKSPACE/srcdir/mold/
mkdir build && cd build
if [[ "${target}" == i686-linux-gnu ]]; then
# We need to link to librt for `clock_gettime` symbol
export LDFLAGS=-lrt
fi
cmake .. \
-DCMAKE_INSTALL_PREFIX=${prefix} \
-DCMAKE_TOOLCHAIN_FILE=${CMAKE_TARGET_TOOLCHAIN} \
-DCMAKE_BUILD_TYPE=Release
make -j${nproc}
make install PREFIX="${prefix}" BINDIR="${bindir}" LIBDIR="${libdir}"
make install
"""

# These are the platforms we will build for by default, unless further
Expand All @@ -30,7 +40,7 @@ products = [
# Dependencies that must be installed before this package can be built
dependencies = [
Dependency(PackageSpec(name="Zlib_jll", uuid="83775a58-1f1d-513f-b197-d71354ab007a"))
Dependency(PackageSpec(name="OpenSSL_jll", uuid="458c3c95-2e84-50aa-8efc-19380b2a3a95"); compat="1.1.10")
Dependency(PackageSpec(name="OpenSSL_jll", uuid="458c3c95-2e84-50aa-8efc-19380b2a3a95"); compat="3.0.8")
]

# Build the tarballs, and possibly a `build.jl` as well.
Expand Down

0 comments on commit e8a69fe

Please sign in to comment.