Skip to content
This repository has been archived by the owner on Aug 16, 2023. It is now read-only.

Commit

Permalink
Merge pull request #25 from ChrisRackauckas/regex
Browse files Browse the repository at this point in the history
Fix regex for redhat
  • Loading branch information
staticfloat authored Jan 14, 2018
2 parents 79c9981 + daed3a3 commit 31bc633
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions src/PlatformNames.jl
Original file line number Diff line number Diff line change
Expand Up @@ -155,19 +155,19 @@ function platform_key(machine::AbstractString = Sys.MACHINE)
if startswith(machine, "x86_64-apple-darwin")
return MacOS()
end
if ismatch(r"x86_64-(pc-)?(unknown-)?linux-gnu", machine)
if ismatch(r"x86_64-.*-linux(-gnu)?", machine)
return Linux(:x86_64)
end
if ismatch(r"i\d86-(pc-)?(unknown-)?linux-gnu", machine)
if ismatch(r"i\d86-.*-linux(-gnu)?", machine)
return Linux(:i686)
end
if ismatch(r"aarch64-(pc-)?(unknown-)?linux-gnu", machine)
if ismatch(r"aarch64-.*-linux(-gnu)?", machine)
return Linux(:aarch64)
end
if ismatch(r"armv7l-(pc-)?(unknown-)?linux-gnueabihf", machine)
if ismatch(r"armv7l-.*-linux(-gnu)?eabihf", machine)
return Linux(:armv7l)
end
if ismatch(r"powerpc64le-(pc-)?(unknown-)?linux-gnu", machine)
if ismatch(r"powerpc64le-.*-linux(-gnu)?", machine)
return Linux(:powerpc64le)
end

Expand Down

0 comments on commit 31bc633

Please sign in to comment.