File tree Expand file tree Collapse file tree 2 files changed +9
-1
lines changed
stdlib/libblastrampoline_jll/src Expand file tree Collapse file tree 2 files changed +9
-1
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, ())
Original file line number Diff line number Diff line change 214214 prop = getproperty (m, prop_name)
215215 if isa (prop, Libdl. LazyLibrary)
216216 lib_path = dlpath (prop)
217- lazy_lib_deps = strip_soversion .(basename .(dlpath .(prop. dependencies)))
217+ lazy_lib_deps = strip_soversion .(basename .(dlpath .(prop. dependencies () )))
218218 real_lib_deps = filter (! is_system_lib, get_deps_objectfile (lib_path))
219219
220220 # See if there are missing dependencies in the lazy library deps
You can’t perform that action at this time.
0 commit comments