Skip to content

Commit 8f5e9f2

Browse files
update build.jl
1 parent 2b2b7a8 commit 8f5e9f2

File tree

1 file changed

+12
-7
lines changed

1 file changed

+12
-7
lines changed

deps/build.jl

Lines changed: 12 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,6 @@ const path = joinpath(@__DIR__, "usr/lib64")
66
products = [
77
LibraryProduct(path, "libgraphblas", :libgraphblas),
88
]
9-
109
bin_prefix = "https://raw.githubusercontent.com/abhinavmehndiratta/GB_bin/master"
1110

1211
download_info = Dict(
@@ -16,10 +15,16 @@ download_info = Dict(
1615
Linux(:aarch64, libc=:glibc, compiler_abi=CompilerABI(:gcc8)) => ("$bin_prefix/GraphBLAS.v2.3.2.aarch64-linux-gnu-gcc8.tar.gz", "13f5d707b547ee74173f324cafc27620c3fea377b5bf80e176c7869aa022ae3c"),
1716
)
1817

19-
unsatisfied = any(!satisfied(p; verbose=verbose) for p in products)
20-
dl_info = choose_download(download_info, platform_key_abi())
21-
if dl_info === nothing && unsatisfied
22-
error("Your platform (\"$(Sys.MACHINE)\", parsed as \"$(triplet(platform_key_abi()))\") is not supported by this package!")
18+
if any(!satisfied(p; verbose=verbose) for p in products)
19+
try
20+
url, tarball_hash = choose_download(download_info)
21+
install(url, tarball_hash; prefix=prefix, force=true, verbose=true)
22+
catch e
23+
if typeof(e) <: ArgumentError
24+
error("Your platform $(Sys.MACHINE) is not supported by this package!")
25+
else
26+
rethrow(e)
27+
end
28+
end
29+
write_deps_file(joinpath(@__DIR__, "deps.jl"), products)
2330
end
24-
25-
write_deps_file(joinpath(@__DIR__, "deps.jl"), products, verbose=verbose)

0 commit comments

Comments
 (0)