diff --git a/Project.toml b/Project.toml index 8bad72e..bd64454 100644 --- a/Project.toml +++ b/Project.toml @@ -1,7 +1,7 @@ name = "Sandbox" uuid = "9307e30f-c43e-9ca7-d17c-c2dc59df670d" authors = ["Elliot Saba "] -version = "1.5.0" +version = "1.5.1" [deps] LazyArtifacts = "4af54fe1-eca0-43a8-85a7-787d91b784e3" diff --git a/src/Sandbox.jl b/src/Sandbox.jl index e181cb4..ec7b090 100644 --- a/src/Sandbox.jl +++ b/src/Sandbox.jl @@ -274,4 +274,11 @@ end # The multiarch rootfs is truly multiarch multiarch_rootfs(;platform=nothing) = artifact"multiarch-rootfs" +# Precompilation section +let + f(exe) = run(exe, SandboxConfig(Dict("/" => "/")), `/bin/bash -c exit`) + precompile(select_executor, (Bool,)) + precompile(with_executor, (typeof(f),)) +end + end # module