The issue on nightly is due to known limitations around LazyLibrary and --trim
This works fine on 1.12, since it doesn’t use LazyLibrary to load BLAS, but on master this will be regressed until this is fixed trimming: no way to `ccall` into a dynamically-computed library name · Issue #57707 · JuliaLang/julia · GitHub.
We’ve got a plan to resolve this before 1.13, but it’s definitely a regression for nightly in the mean time.