From 825b4f26b354d2676a28182e6b13d1ac1f4af4bc Mon Sep 17 00:00:00 2001 From: Kristoffer Date: Tue, 1 Apr 2025 08:58:49 +0200 Subject: [PATCH] stop assuming that you can mutate data structures in other packages at precompile time hopefully fixes CI --- src/LinearAlgebra.jl | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) diff --git a/src/LinearAlgebra.jl b/src/LinearAlgebra.jl index 7f45370c..14de2f03 100644 --- a/src/LinearAlgebra.jl +++ b/src/LinearAlgebra.jl @@ -840,7 +840,10 @@ function lbt_openblas_onload_callback() end end -# If users want to lazily load a different BLAS, they'd need to either change this call, or -# clear the datastructures modified by this call and call it again with their own. -libblastrampoline_jll.add_dependency!(OpenBLAS_jll, libopenblas, lbt_openblas_onload_callback) +function __init__() + # If users want to lazily load a different BLAS, they'd need to either change this call, or + # clear the datastructures modified by this call and call it again with their own. + libblastrampoline_jll.add_dependency!(OpenBLAS_jll, libopenblas, lbt_openblas_onload_callback) +end + end # module LinearAlgebra