Skip to content
Open
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
2 changes: 1 addition & 1 deletion Project.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
name = "AppleAccelerate"
uuid = "13e28ba4-7ad8-5781-acae-3021b1ed3924"
version = "0.4.1"
version = "0.4.2"

[deps]
Libdl = "8f399da3-3557-5675-b5ff-fb832c97cbdb"
Expand Down
8 changes: 6 additions & 2 deletions src/AppleAccelerate.jl
Original file line number Diff line number Diff line change
Expand Up @@ -67,7 +67,7 @@
end
end

function get_macos_version()
function get_macos_version(normalize=true)
@static if !Sys.isapple()
return nothing
end
Expand All @@ -83,7 +83,11 @@
return nothing
end

return VersionNumber(only(m.captures))
ver = VersionNumber(only(m.captures))
if normalize && ver.major == 16
return VersionNumber(26, ver.minor, ver.patch)

Check warning on line 88 in src/AppleAccelerate.jl

View check run for this annotation

Codecov / codecov/patch

src/AppleAccelerate.jl#L88

Added line #L88 was not covered by tests
end
return ver
end

function __init__()
Expand Down
Loading