From 72b4c0847620cd896372377ed15285796c89b538 Mon Sep 17 00:00:00 2001 From: Keno Fischer Date: Fri, 13 Jun 2025 22:20:00 +0000 Subject: [PATCH] Re-precompile BinaryBuilderBase if Artifacts.toml changes I was very confused why https://github.com/JuliaPackaging/BinaryBuilderBase.jl/pull/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. --- src/Rootfs.jl | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/src/Rootfs.jl b/src/Rootfs.jl index bcead2f4..395b7853 100644 --- a/src/Rootfs.jl +++ b/src/Rootfs.jl @@ -407,6 +407,11 @@ const available_gcc_builds = [ # GCCBuild(v"11.0.0-iains", (libgfortran_version = v"5", libstdcxx_version = v"3.4.28", cxxstring_abi = "cxx11")), GCCBuild(v"12.0.1-iains", (libgfortran_version = v"5", libstdcxx_version = v"3.4.29", cxxstring_abi = "cxx11")), ] + +# Since we read the Artifacts.toml at compile time, we need to make sure that we-reprecompile +# if the file changes - let Julia know. +Base.include_dependency(joinpath(dirname(@__DIR__), "Artifacts.toml")) + const available_llvm_builds = LLVMBuild.(get_available_builds("LLVMBootstrap.")) const available_go_builds = GoBuild.(get_available_builds("Go."))