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
8 changes: 4 additions & 4 deletions src/Rootfs.jl
Original file line number Diff line number Diff line change
Expand Up @@ -769,8 +769,8 @@ function expand_gfortran_versions(platform::AbstractPlatform)
return p
end
end
function expand_gfortran_versions(ps::Vector{<:Platform})
return collect(Iterators.flatten(expand_gfortran_versions.(ps)))
function expand_gfortran_versions(ps::Vector{T}) where {T<:AbstractPlatform}
return collect(T,Iterators.flatten(expand_gfortran_versions.(ps)))
end

"""
Expand Down Expand Up @@ -806,8 +806,8 @@ function expand_cxxstring_abis(platform::AbstractPlatform; skip=Sys.isbsd)
return p
end
end
function expand_cxxstring_abis(ps::Vector{<:AbstractPlatform}; kwargs...)
return collect(Iterators.flatten(expand_cxxstring_abis.(ps; kwargs...)))
function expand_cxxstring_abis(ps::Vector{T}; kwargs...) where {T<:AbstractPlatform}
return collect(T,Iterators.flatten(expand_cxxstring_abis.(ps; kwargs...)))
end

"""
Expand Down
4 changes: 3 additions & 1 deletion test/rootfs.jl
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,7 @@ using BinaryBuilderBase
]
@test expand_gfortran_versions([Platform("x86_64", "linux"; sanitize="memory")]) ==
[Platform("x86_64", "linux"; sanitize="memory")]
@test expand_gfortran_versions(Platform[]) isa Vector{Platform}

# expand_cxxstring_abis
@test expand_cxxstring_abis(Platform("x86_64", "linux"; libc="musl")) == [
Expand All @@ -52,7 +53,8 @@ using BinaryBuilderBase
[Platform("i686", "linux"; cxxstring_abi="cxx11")]
@test expand_cxxstring_abis([Platform("x86_64", "linux"; sanitize="memory")]) ==
[Platform("x86_64", "linux"; sanitize="memory", cxxstring_abi="cxx11")]

@test expand_cxxstring_abis(Platform[]) isa Vector{Platform}

# expand_microarchitectures
@test expand_microarchitectures([AnyPlatform()]) == [AnyPlatform()]
@test sort(expand_microarchitectures(Platform("x86_64", "linux"; cuda="10.1")), by=triplet) == [
Expand Down