File tree Expand file tree Collapse file tree 1 file changed +8
-0
lines changed
stdlib/libblastrampoline_jll/src Expand file tree Collapse file tree 1 file changed +8
-0
lines changed Original file line number Diff line number Diff line change @@ -57,9 +57,17 @@ function __init__()
5757 global libblastrampoline_path = string (libblastrampoline. path)
5858 global artifact_dir = dirname (Sys. BINDIR)
5959 LIBPATH[] = dirname (libblastrampoline_path)
60+ empty! (LIBPATH_list)
6061 push! (LIBPATH_list, LIBPATH[])
6162end
6263
64+ # Running this __init__() eagerly initializes several of the above global
65+ # with build-time values (which are not correct to use at run-time), but
66+ # thankfully these will be reset by __init__() before they are used.
67+ #
68+ # This allows BLAS / LinearAlgebra to be used in a sysimage (`--trim`) build.
69+ __init__ ()
70+
6371if Base. generating_output ()
6472 precompile (eager_mode, ())
6573 precompile (is_available, ())
You can’t perform that action at this time.
0 commit comments