From 0b2313596e1341acb62892aa174ce0ae11c174b3 Mon Sep 17 00:00:00 2001 From: odow Date: Fri, 6 Dec 2024 14:38:20 +1300 Subject: [PATCH] Throw an error in __init__ if computer is an Apple M-series --- src/Clp.jl | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/src/Clp.jl b/src/Clp.jl index 15cdd05..b109496 100644 --- a/src/Clp.jl +++ b/src/Clp.jl @@ -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)