Skip to content

Commit

Permalink
add isunix for BinaryPlatforms AbstractPlatform (#47543)
Browse files Browse the repository at this point in the history
This provides symmetry with the methods defined in `Sys`,
and is convenient for use in e.g. BinaryBuilder platform filters.
Note that there are other `is.*bsd` variants we omit since they
are unsupported by BinaryPlatforms. The capitilization
conventions are also different so we do not call the Sys methods
directly.
  • Loading branch information
sjkelly committed Nov 14, 2022
1 parent 7fe6b16 commit d0559c1
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions base/binaryplatforms.jl
Original file line number Diff line number Diff line change
Expand Up @@ -584,6 +584,7 @@ Sys.islinux(p::AbstractPlatform) = os(p) == "linux"
Sys.iswindows(p::AbstractPlatform) = os(p) == "windows"
Sys.isfreebsd(p::AbstractPlatform) = os(p) == "freebsd"
Sys.isbsd(p::AbstractPlatform) = os(p) ("freebsd", "macos")
Sys.isunix(p::AbstractPlatform) = Sys.isbsd(p) || Sys.islinux(p)

const arch_mapping = Dict(
"x86_64" => "(x86_|amd)64",
Expand Down

0 comments on commit d0559c1

Please sign in to comment.