Skip to content

Commit

Permalink
Merge pull request #3493 from JuliaLang/kp/rm-version-check
Browse files Browse the repository at this point in the history
  • Loading branch information
IanButterworth authored May 24, 2023
2 parents adcc6c4 + 5cee193 commit ed13aba
Showing 1 changed file with 0 additions and 6 deletions.
6 changes: 0 additions & 6 deletions src/Operations.jl
Original file line number Diff line number Diff line change
Expand Up @@ -1660,19 +1660,13 @@ function gen_test_precompile_code(source_path::String; coverage, julia_args::Cmd
return gen_subprocess_cmd(code, source_path; coverage, julia_args)
end

@static if VERSION >= v"1.9.0" # has threadpools
function get_threads_spec()
if Threads.nthreads(:interactive) > 0
"$(Threads.nthreads(:default)),$(Threads.nthreads(:interactive))"
else
"$(Threads.nthreads(:default))"
end
end
else # no threadpools
function get_threads_spec()
"$(Threads.nthreads())"
end
end

function gen_subprocess_cmd(code::String, source_path::String; coverage, julia_args)
coverage_arg = if coverage isa Bool
Expand Down

0 comments on commit ed13aba

Please sign in to comment.