Skip to content

Commit 2a3691f

Browse files
authored
Re-precompile BinaryBuilderBase if Artifacts.toml changes (#428)
I was very confused why #427 didn't take for me locally - turns out we cache these at precompile time. We have a mechanism for this situation, so let's use it.
1 parent 72c6efb commit 2a3691f

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

src/Rootfs.jl

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -407,6 +407,11 @@ const available_gcc_builds = [
407407
# GCCBuild(v"11.0.0-iains", (libgfortran_version = v"5", libstdcxx_version = v"3.4.28", cxxstring_abi = "cxx11")),
408408
GCCBuild(v"12.0.1-iains", (libgfortran_version = v"5", libstdcxx_version = v"3.4.29", cxxstring_abi = "cxx11")),
409409
]
410+
411+
# Since we read the Artifacts.toml at compile time, we need to make sure that we-reprecompile
412+
# if the file changes - let Julia know.
413+
Base.include_dependency(joinpath(dirname(@__DIR__), "Artifacts.toml"))
414+
410415
const available_llvm_builds = LLVMBuild.(get_available_builds("LLVMBootstrap."))
411416

412417
const available_go_builds = GoBuild.(get_available_builds("Go."))

0 commit comments

Comments
 (0)