From 139e09ea9e21c153444e2feed17bca4d2254cd2d Mon Sep 17 00:00:00 2001 From: KristofferC Date: Tue, 10 Aug 2021 10:10:06 +0200 Subject: [PATCH] go back to 1.6 version of precompile --- base/loading.jl | 8 +------- 1 file changed, 1 insertion(+), 7 deletions(-) diff --git a/base/loading.jl b/base/loading.jl index bb2fe6015f359..2c6d9f5ea60bc 100644 --- a/base/loading.jl +++ b/base/loading.jl @@ -1926,13 +1926,7 @@ function precompile(@nospecialize(f), args::Tuple) precompile(Tuple{Core.Typeof(f), args...}) end -function precompile(argt::Type) - success = ccall(:jl_compile_hint, Int32, (Any,), argt) != 0 - if !success - @debug "Inactive precompile statement" maxlog=10 form=argt _module=nothing _file=nothing _line=0 - end - return success -end +precompile(argt::Type) = ccall(:jl_compile_hint, Int32, (Any,), argt) != 0 precompile(include_package_for_output, (PkgId, String, Vector{String}, Vector{String}, Vector{String}, typeof(_concrete_dependencies), Nothing)) precompile(include_package_for_output, (PkgId, String, Vector{String}, Vector{String}, Vector{String}, typeof(_concrete_dependencies), String))