@@ -649,11 +649,13 @@ end
649649choose_shards (:: AnyPlatform ; kwargs... ) = choose_shards (default_host_platform; kwargs... )
650650
651651"""
652- supported_platforms(;exclude::Union{Vector{<:Platform},Function}=x->false)
652+ supported_platforms(;exclude::Union{Vector{<:Platform},Function}=x->false,
653+ experimental::Bool=false)
653654
654655Return the list of supported platforms as an array of `Platform`s. These are the platforms we
655656officially support building for, if you see a mapping in `get_shard_hash()` that isn't
656- represented here, it's probably because that platform is still considered "in beta".
657+ represented here, it's probably because that platform is still considered "in beta". If
658+ `experimental=true`, include platforms considered experimental.
657659
658660Platforms can be excluded from the list by specifying an array of platforms to `exclude` i.e.
659661`supported_platforms(exclude=[Platform("i686", "windows"), Platform("x86_64", "windows")])`
@@ -663,27 +665,28 @@ supported_platforms(exclude=Sys.islinux)
663665```
664666"""
665667function supported_platforms (;exclude:: Union{Vector{<:Platform},Function} = x-> false ,
666- experimental:: Bool = false )
668+ experimental:: Bool = false )
667669 exclude_platforms! (platforms, exclude:: Function ) = filter (! exclude, platforms)
668670 exclude_platforms! (platforms, exclude:: Vector{<:Platform} ) = filter! (! in (exclude), platforms)
669671 standard_platforms = [
670672 # glibc Linuces
671673 Platform (" i686" , " linux" ),
672674 Platform (" x86_64" , " linux" ),
673675 Platform (" aarch64" , " linux" ),
674- # Platform("armv6l", "linux"),
676+ Platform (" armv6l" , " linux" ),
675677 Platform (" armv7l" , " linux" ),
676678 Platform (" powerpc64le" , " linux" ),
677679
678680 # musl Linuces
679681 Platform (" i686" , " linux" ; libc= " musl" ),
680682 Platform (" x86_64" , " linux" ; libc= " musl" ),
681683 Platform (" aarch64" , " linux" ; libc= " musl" ),
682- # Platform("armv6l", "linux"; libc="musl"),
684+ Platform (" armv6l" , " linux" ; libc= " musl" ),
683685 Platform (" armv7l" , " linux" ; libc= " musl" ),
684686
685687 # BSDs
686688 Platform (" x86_64" , " macos" ),
689+ Platform (" aarch64" , " macos" ),
687690 Platform (" x86_64" , " freebsd" ),
688691
689692 # Windows
@@ -694,9 +697,6 @@ function supported_platforms(;exclude::Union{Vector{<:Platform},Function}=x->fal
694697 # We have experimental support for some platforms, allow easily including them
695698 if experimental
696699 append! (standard_platforms, [
697- Platform (" aarch64" , " macos" ),
698- Platform (" armv6l" , " linux" ),
699- Platform (" armv6l" , " linux" ; libc= " musl" ),
700700 ])
701701 end
702702 return exclude_platforms! (standard_platforms,exclude)
0 commit comments