Files
julia/stdlib/stdlib.mk
Cody Tapscott d6f2a7e32e build: include SuiteSparse in pkgimages to precompile (#60291)
This seems to be an issue at least as far back as 1.10:
```julia
$ rm -rf ~/.julia/compiled/*/SuiteSparse/
$ julia +1.10 -q
julia> using SuiteSparse
[ Info: Precompiling SuiteSparse [4607b0f0-06f3-5cda-b6b1-a6196a1729e9]
```
2025-12-02 15:55:14 -05:00

31 lines
1.3 KiB
Makefile

STDLIBS_WITHIN_SYSIMG := \
Artifacts FileWatching Libdl SHA libblastrampoline_jll OpenBLAS_jll Random \
LinearAlgebra Sockets
INDEPENDENT_STDLIBS := \
ArgTools Base64 CRC32c Dates DelimitedFiles Distributed Downloads Future \
InteractiveUtils JuliaSyntaxHighlighting LazyArtifacts LibGit2 LibCURL Logging \
Markdown Mmap NetworkOptions Profile Printf Pkg REPL Serialization SharedArrays \
SparseArrays Statistics StyledStrings SuiteSparse_jll SuiteSparse Tar Test TOML \
Unicode UUIDs dSFMT_jll GMP_jll libLLVM_jll LLD_jll LLVMLibUnwind_jll LibUnwind_jll LibUV_jll \
LibCURL_jll LibSSH2_jll LibGit2_jll nghttp2_jll MozillaCACerts_jll \
MPFR_jll OpenLibm_jll OpenSSL_jll PCRE2_jll p7zip_jll Zlib_jll Zstd_jll
STDLIBS := $(STDLIBS_WITHIN_SYSIMG) $(INDEPENDENT_STDLIBS)
VERSDIR := v$(shell cut -d. -f1-2 < $(JULIAHOME)/VERSION)
SYSIMG_STDLIBS_SRCS =
INDEPENDENT_STDLIBS_SRCS =
define STDLIB_srcs
$1_SRCS := $$(shell find $$(build_datarootdir)/julia/stdlib/$$(VERSDIR)/$1/src -name \*.jl) \
$$(wildcard $$(build_prefix)/manifest/$$(VERSDIR)/$1) $$(build_datarootdir)/julia/stdlib/$$(VERSDIR)/$1/Project.toml
ifneq ($(filter $(1),$(STDLIBS_WITHIN_SYSIMG)),)
SYSIMG_STDLIBS_SRCS += $$($1_SRCS)
else
INDEPENDENT_STDLIBS_SRCS += $$($1_SRCS)
endif
endef
$(foreach stdlib,$(STDLIBS),$(eval $(call STDLIB_srcs,$(stdlib))))