Skip to content

Commit

Permalink
Ensure precompilation when testing runs without threads on Julia 1.11
Browse files Browse the repository at this point in the history
Precompilation with threads is not supported: JuliaLang/julia#53572 (comment)
  • Loading branch information
stemann committed Jan 25, 2025
1 parent 2eb8ae5 commit c78fa8d
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/Operations.jl
Original file line number Diff line number Diff line change
Expand Up @@ -2060,7 +2060,8 @@ function test(ctx::Context, pkgs::Vector{PackageSpec};
test_fn !== nothing && test_fn()
sandbox_ctx = Context(;io=ctx.io)
status(sandbox_ctx.env, sandbox_ctx.registries; mode=PKGMODE_COMBINED, io=sandbox_ctx.io, ignore_indent = false, show_usagetips = false)
flags = gen_subprocess_flags(source_path; coverage,julia_args)
precompile_julia_args = Cmd(filter(!startswith("--threads"), julia_args.exec)) # precompilation with threads is not supported
flags = gen_subprocess_flags(source_path; coverage, julia_args = precompile_julia_args)

if should_autoprecompile()
cacheflags = Base.CacheFlags(parse(UInt8, read(`$(Base.julia_cmd()) $(flags) --eval 'show(ccall(:jl_cache_flags, UInt8, ()))'`, String)))
Expand Down

0 comments on commit c78fa8d

Please sign in to comment.