Skip to content

Commit

Permalink
FuzzifiED: New version v1.0.0 (#10536)
Browse files Browse the repository at this point in the history
* Update build_tarballs.jl

* Update build_tarballs.jl

* Update build_tarballs.jl

* Update F/FuzzifiED/build_tarballs.jl

Co-authored-by: Mosè Giordano <765740+giordano@users.noreply.github.com>

* Update build_tarballs.jl

---------

Co-authored-by: Mosè Giordano <765740+giordano@users.noreply.github.com>
  • Loading branch information
mankai-chow and giordano authored Feb 15, 2025
1 parent 5aa52fe commit f39f63e
Showing 1 changed file with 5 additions and 17 deletions.
22 changes: 5 additions & 17 deletions F/FuzzifiED/build_tarballs.jl
Original file line number Diff line number Diff line change
Expand Up @@ -3,34 +3,22 @@
using BinaryBuilder, Pkg

name = "FuzzifiED"
version = v"0.10.6"
version = v"1.0.0"

# Collection of sources required to complete build
sources = [
GitSource("https://github.com/FuzzifiED/FuzzifiED_Fortran.git", "262616b86d71a4d5dcf10c0608c789d4cf45f6d8")
GitSource("https://github.com/FuzzifiED/FuzzifiED_Fortran.git", "a81b1fa6b1560ab0046ec139dec0d0d355e56b34")
]

# Bash recipe for building across all platforms
script = raw"""
cd $WORKSPACE/srcdir/FuzzifiED_Fortran/src/
FFLAGS=(-O3 -fPIC -fopenmp)
if [[ ${nbits} == 64 ]]; then
FFLAGS+=(-fdefault-integer-8)
fi
for src in cfs.f90 bs.f90 op.f90 diag.f90 diag_re.f90 ent.f90; do
gfortran "${FFLAGS[@]}" -c ./${src}
done
gfortran "${FFLAGS[@]}" -shared -o "${libdir}/libfuzzified.${dlext}" ./*.o -L "${libdir}" -larpack
cd super
for src in scfs.f90 sbs.f90 sop.f90 sent.f90; do
gfortran "${FFLAGS[@]}" -c ./${src}
done
gfortran "${FFLAGS[@]}" -shared -o "${libdir}/libfuzzifino.${dlext}" ./*.o
cd $WORKSPACE/srcdir/FuzzifiED_Fortran/
make DLEXT=${dlext} LIB_DIR=${libdir} NBITS=${nbits}
"""

# These are the platforms we will build for by default, unless further
# platforms are passed in on the command line
platforms = expand_gfortran_versions(supported_platforms(exclude = p -> arch(p) == "aarch64" && os(p) == "freebsd"))
platforms = expand_gfortran_versions(supported_platforms(exclude = [Platform("aarch64", "freebsd"), Platform("riscv64", "linux")]))

# The products that we will ensure are always built
products = [
Expand Down

0 comments on commit f39f63e

Please sign in to comment.