Skip to content

Commit f5fce7a

Browse files
authored
Merge pull request #122 from FluxML/ap/builderror
Avoid error while trying to build NNPACK on unsupported platforms
2 parents 1584f86 + 8d28c4b commit f5fce7a

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

deps/build.jl

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,8 @@ if dl_info === nothing && unsatisfied
2727
# If we don't have a compatible .tar.gz to download, complain.
2828
# Alternatively, you could attempt to install from a separate provider,
2929
# build from source or something even more ambitious here.
30-
error("Your platform (\"$(Sys.MACHINE)\", parsed as \"$(triplet(platform_key_abi()))\") is not supported by this package!")
30+
@warn "Your platform (\"$(Sys.MACHINE)\", parsed as \"$(triplet(platform_key_abi()))\") is not supported by NNPACK!
31+
You will only be able to use only the default NNlib backend."
3132
end
3233

3334
# If we have a download, and we are unsatisfied (or the version we're
@@ -38,4 +39,4 @@ if unsatisfied || !isinstalled(dl_info...; prefix=prefix)
3839
end
3940

4041
# Write out a deps.jl file that will contain mappings for our products
41-
write_deps_file(joinpath(@__DIR__, "deps.jl"), products, verbose=verbose)
42+
write_deps_file(joinpath(@__DIR__, "deps.jl"), products, verbose=verbose)

0 commit comments

Comments
 (0)