Skip to content

Commit 139e09e

Browse files
committed
go back to 1.6 version of precompile
1 parent 06a31a0 commit 139e09e

File tree

1 file changed

+1
-7
lines changed

1 file changed

+1
-7
lines changed

base/loading.jl

Lines changed: 1 addition & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1926,13 +1926,7 @@ function precompile(@nospecialize(f), args::Tuple)
19261926
precompile(Tuple{Core.Typeof(f), args...})
19271927
end
19281928

1929-
function precompile(argt::Type)
1930-
success = ccall(:jl_compile_hint, Int32, (Any,), argt) != 0
1931-
if !success
1932-
@debug "Inactive precompile statement" maxlog=10 form=argt _module=nothing _file=nothing _line=0
1933-
end
1934-
return success
1935-
end
1929+
precompile(argt::Type) = ccall(:jl_compile_hint, Int32, (Any,), argt) != 0
19361930

19371931
precompile(include_package_for_output, (PkgId, String, Vector{String}, Vector{String}, Vector{String}, typeof(_concrete_dependencies), Nothing))
19381932
precompile(include_package_for_output, (PkgId, String, Vector{String}, Vector{String}, Vector{String}, typeof(_concrete_dependencies), String))

0 commit comments

Comments
 (0)