@@ -649,11 +649,13 @@ end
649
649
choose_shards (:: AnyPlatform ; kwargs... ) = choose_shards (default_host_platform; kwargs... )
650
650
651
651
"""
652
- supported_platforms(;exclude::Union{Vector{<:Platform},Function}=x->false)
652
+ supported_platforms(;exclude::Union{Vector{<:Platform},Function}=x->false,
653
+ experimental::Bool=false)
653
654
654
655
Return the list of supported platforms as an array of `Platform`s. These are the platforms we
655
656
officially 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.
657
659
658
660
Platforms can be excluded from the list by specifying an array of platforms to `exclude` i.e.
659
661
`supported_platforms(exclude=[Platform("i686", "windows"), Platform("x86_64", "windows")])`
@@ -663,27 +665,28 @@ supported_platforms(exclude=Sys.islinux)
663
665
```
664
666
"""
665
667
function supported_platforms (;exclude:: Union{Vector{<:Platform},Function} = x-> false ,
666
- experimental:: Bool = false )
668
+ experimental:: Bool = false )
667
669
exclude_platforms! (platforms, exclude:: Function ) = filter (! exclude, platforms)
668
670
exclude_platforms! (platforms, exclude:: Vector{<:Platform} ) = filter! (! in (exclude), platforms)
669
671
standard_platforms = [
670
672
# glibc Linuces
671
673
Platform (" i686" , " linux" ),
672
674
Platform (" x86_64" , " linux" ),
673
675
Platform (" aarch64" , " linux" ),
674
- # Platform("armv6l", "linux"),
676
+ Platform (" armv6l" , " linux" ),
675
677
Platform (" armv7l" , " linux" ),
676
678
Platform (" powerpc64le" , " linux" ),
677
679
678
680
# musl Linuces
679
681
Platform (" i686" , " linux" ; libc= " musl" ),
680
682
Platform (" x86_64" , " linux" ; libc= " musl" ),
681
683
Platform (" aarch64" , " linux" ; libc= " musl" ),
682
- # Platform("armv6l", "linux"; libc="musl"),
684
+ Platform (" armv6l" , " linux" ; libc= " musl" ),
683
685
Platform (" armv7l" , " linux" ; libc= " musl" ),
684
686
685
687
# BSDs
686
688
Platform (" x86_64" , " macos" ),
689
+ Platform (" aarch64" , " macos" ),
687
690
Platform (" x86_64" , " freebsd" ),
688
691
689
692
# Windows
@@ -694,9 +697,6 @@ function supported_platforms(;exclude::Union{Vector{<:Platform},Function}=x->fal
694
697
# We have experimental support for some platforms, allow easily including them
695
698
if experimental
696
699
append! (standard_platforms, [
697
- Platform (" aarch64" , " macos" ),
698
- Platform (" armv6l" , " linux" ),
699
- Platform (" armv6l" , " linux" ; libc= " musl" ),
700
700
])
701
701
end
702
702
return exclude_platforms! (standard_platforms,exclude)
0 commit comments