Skip to content

Commit e749342

Browse files
udesougiordano
andauthored
New Recipe: mmtk_julia v0.30.2 (#10210)
* New Recipe: mmtk_julia v0.30.2 * Update M/mmtk_julia/build_tarballs.jl Co-authored-by: Mosè Giordano <[email protected]> * Update M/mmtk_julia/build_tarballs.jl Co-authored-by: Mosè Giordano <[email protected]> * Using GitSource * Adding dont_dlopen=true --------- Co-authored-by: Mosè Giordano <[email protected]>
1 parent b15cf34 commit e749342

File tree

1 file changed

+38
-0
lines changed

1 file changed

+38
-0
lines changed

M/mmtk_julia/build_tarballs.jl

Lines changed: 38 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,38 @@
1+
# Note that this script can accept some limited command-line arguments, run
2+
# `julia build_tarballs.jl --help` to see a usage message.
3+
using BinaryBuilder, Pkg
4+
5+
name = "mmtk_julia"
6+
version = v"0.30.2"
7+
8+
# Collection of sources required to complete build
9+
sources = [
10+
GitSource("https://github.com/mmtk/mmtk-julia.git", "b69acf5af7a7dd97c1cc6fd99f7c2d51b477f214")
11+
]
12+
13+
# Bash recipe for building across all platforms
14+
script = raw"""
15+
cd $WORKSPACE/srcdir
16+
cd mmtk-julia/
17+
make release
18+
install -Dvm 755 "mmtk/target/${rust_target}/release/libmmtk_julia.${dlext}" -t "${libdir}"
19+
"""
20+
21+
# These are the platforms we will build for by default, unless further
22+
# platforms are passed in on the command line
23+
platforms = [
24+
Platform("x86_64", "linux"; libc = "glibc")
25+
]
26+
27+
28+
# The products that we will ensure are always built
29+
products = [
30+
LibraryProduct("libmmtk_julia", :libmmtk_julia)
31+
]
32+
33+
# Dependencies that must be installed before this package can be built
34+
dependencies = Dependency[
35+
]
36+
37+
# Build the tarballs, and possibly a `build.jl` as well.
38+
build_tarballs(ARGS, name, version, sources, script, platforms, products, dependencies; julia_compat="1.6", compilers = [:rust, :c], preferred_gcc_version = v"10", dont_dlopen=true)

0 commit comments

Comments
 (0)