-
-
Notifications
You must be signed in to change notification settings - Fork 5.5k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Make sysimg only recompile when stdlibs that are contained within change
- Loading branch information
Showing
3 changed files
with
95 additions
and
77 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,27 @@ | ||
STDLIBS_WITHIN_SYSIMG := \ | ||
ArgTools Artifacts Base64 CRC32c FileWatching Libdl NetworkOptions SHA Serialization \ | ||
MbedTLS_jll libblastrampoline_jll OpenBLAS_jll Printf Random Tar LibSSH2_jll LibGit2_jll \ | ||
LinearAlgebra Dates Future LibGit2 UUIDs TOML LibCURL Downloads Pkg Dates Logging \ | ||
Sockets Unicode Markdown InteractiveUtils REPL nghttp2_jll LibCURL_jll MozillaCACerts_jll \ | ||
Mmap | ||
|
||
INDEPENDENT_STDLIBS := \ | ||
GMP_jll LLVMLibUnwind_jll LibUV_jll LibUnwind_jll OpenLibm_jll PCRE2_jll \ | ||
Zlib_jll dSFMT_jll libLLVM_jll LLD_jll MPFR_jll \ | ||
DelimitedFiles Distributed SharedArrays SparseArrays Statistics Test LazyArtifacts \ | ||
Profile | ||
|
||
|
||
STDLIBS := $(STDLIBS_WITHIN_SYSIMG) $(INDEPENDENT_STDLIBS) | ||
VERSDIR := v$(shell cut -d. -f1-2 < $(JULIAHOME)/VERSION) | ||
|
||
SYSIMG_STDLIB_SRCS = | ||
define STDLIB_srcs | ||
$1_SRCS := $$(shell find $$(build_datarootdir)/julia/stdlib/$$(VERSDIR)/$1/src -name \*.jl) \ | ||
$$(wildcard $$(build_prefix)/manifest/$$(VERSDIR)/$1) | ||
ifneq ($(filter $(1),$(STDLIBS_WITHIN_SYSIMG)),) | ||
SYSIMG_STDLIB_SRCS += $$($1_SRCS) | ||
endif | ||
endef | ||
|
||
$(foreach stdlib,$(STDLIBS),$(eval $(call STDLIB_srcs,$(stdlib)))) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters