Skip to content

Commit

Permalink
All platforms except Windows.
Browse files Browse the repository at this point in the history
Co-authored-by: Mosè Giordano <[email protected]>
  • Loading branch information
Fenyutanchan and giordano committed Feb 21, 2023
1 parent b6873bb commit 7a24a95
Showing 1 changed file with 4 additions and 22 deletions.
26 changes: 4 additions & 22 deletions F/FORM/build_tarballs.jl
Original file line number Diff line number Diff line change
Expand Up @@ -13,36 +13,18 @@ sources = [

# Bash recipe for building across all platforms
script = raw"""
cd $WORKSPACE/srcdir
cd form/
cd $WORKSPACE/srcdir/form/
autoreconf -i
./configure --prefix=${prefix} --build=${MACHTYPE} --host=${target} --enable-parform
./configure --prefix=${prefix} --build=${MACHTYPE} --host=${target} --enable-parform --enable_native=no
make -j${nproc}
make install
"""

# These are the platforms we will build for by default, unless further
# platforms are passed in on the command line
platforms = [
# Platform("i686", "linux"; libc = "glibc"), # Exit with `BinaryBuilder: Cannot force an architecture via -march`
Platform("x86_64", "linux"; libc = "glibc"),
Platform("aarch64", "linux"; libc = "glibc"),
Platform("armv6l", "linux"; call_abi = "eabihf", libc = "glibc"),
Platform("armv7l", "linux"; call_abi = "eabihf", libc = "glibc"),
Platform("powerpc64le", "linux"; libc = "glibc"),
# Platform("i686", "linux"; libc = "musl"), # Exit with `BinaryBuilder: Cannot force an architecture via -march`
Platform("x86_64", "linux"; libc = "musl"),
Platform("aarch64", "linux"; libc = "musl"),
Platform("armv6l", "linux"; call_abi = "eabihf", libc = "musl"),
Platform("armv7l", "linux"; call_abi = "eabihf", libc = "musl"),
Platform("x86_64", "macos"; ),
Platform("aarch64", "macos"; ),
Platform("x86_64", "freebsd"; )
# Platform("i686", "windows"; ), # How to compile with the Microsoft MPI? Exit with `BinaryBuilder: Cannot force an architecture via -march` too.
# Platform("x86_64", "windows"; ) # How to compile with the Microsoft MPI? Disable `parform`, then exit with `fatal error: sys/wait.h: No such file or directory`.
]
platforms = supported_platforms(; exclude=Sys.iswindows)
platforms = expand_cxxstring_abis(platforms)

# The products that we will ensure are always built
Expand All @@ -54,7 +36,7 @@ products = [

# Dependencies that must be installed before this package can be built
dependencies = [
Dependency(PackageSpec(name="GMP_jll", uuid="781609d7-10c4-51f6-84f2-b8444358ff6d"))
Dependency(PackageSpec(name="GMP_jll", uuid="781609d7-10c4-51f6-84f2-b8444358ff6d"); compat="6.2.1")
Dependency(PackageSpec(name="Zlib_jll", uuid="83775a58-1f1d-513f-b197-d71354ab007a"))
Dependency(PackageSpec(name="MPICH_jll", uuid="7cb0a576-ebde-5e09-9194-50597f1243b4"); platforms=filter(!Sys.iswindows, platforms))
# Dependency(PackageSpec(name="MicrosoftMPI_jll", uuid="9237b28f-5490-5468-be7b-bb81f5f5e6cf"); platforms=filter(Sys.iswindows, platforms)) # Windows not supported!
Expand Down

0 comments on commit 7a24a95

Please sign in to comment.