Skip to content

Commit

Permalink
Throw an error in __init__ if computer is an Apple M-series (#157)
Browse files Browse the repository at this point in the history
  • Loading branch information
odow authored Dec 12, 2024
1 parent ef11e60 commit e7bab54
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions src/Clp.jl
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,11 @@ import MathOptInterface as MOI
import OpenBLAS32_jll

function __init__()
@static if Sys.isapple() && Sys.ARCH == :aarch64
error(
"Clp.jl does not support Apple M-series processors. Please use HiGHS.jl instead.",
)
end
if VERSION >= v"1.9"
config = LinearAlgebra.BLAS.lbt_get_config()
if !any(lib -> lib.interface == :lp64, config.loaded_libs)
Expand Down

0 comments on commit e7bab54

Please sign in to comment.