Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 3 additions & 0 deletions src/Platforms.jl
Original file line number Diff line number Diff line change
Expand Up @@ -42,6 +42,9 @@ function libabi_agnostic(p::Platform)
return Platform(arch(p)::String, os(p)::String; filtered_tags...)
end

platforms_match_with_sanitize(a::AnyPlatform, b::AnyPlatform) = true
platforms_match_with_sanitize(a::AnyPlatform, b::AbstractPlatform) = true
platforms_match_with_sanitize(a::AbstractPlatform, b::AnyPlatform) = true
platforms_match_with_sanitize(a::AbstractPlatform, b::AbstractPlatform) =
platforms_match(a, b) && sanitize(a) == sanitize(b)
function platforms_match_with_sanitize(a::AbstractString, b::AbstractPlatform)
Expand Down
4 changes: 4 additions & 0 deletions test/platforms.jl
Original file line number Diff line number Diff line change
Expand Up @@ -57,6 +57,10 @@ end
# Make sure `AnyPlatform` matches all platforms we can possibly support.
@test all(p -> platforms_match(AnyPlatform(), p),
expand_microarchitectures(expand_gfortran_versions(expand_cxxstring_abis(supported_platforms(; experimental=true)))))

# Make sure `AnyPlatform` matches all platforms we can possibly support.
@test all(p -> BinaryBuilderBase.platforms_match_with_sanitize(AnyPlatform(), p),
expand_microarchitectures(expand_gfortran_versions(expand_cxxstring_abis(supported_platforms(; experimental=true)))))
end

@testset "Target properties" begin
Expand Down