Skip to content

Commit 06a31a0

Browse files
committed
fix return value of precompile
1 parent 2ee1fc4 commit 06a31a0

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

base/loading.jl

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1927,10 +1927,11 @@ function precompile(@nospecialize(f), args::Tuple)
19271927
end
19281928

19291929
function precompile(argt::Type)
1930-
if ccall(:jl_compile_hint, Int32, (Any,), argt) == 0
1930+
success = ccall(:jl_compile_hint, Int32, (Any,), argt) != 0
1931+
if !success
19311932
@debug "Inactive precompile statement" maxlog=10 form=argt _module=nothing _file=nothing _line=0
19321933
end
1933-
true
1934+
return success
19341935
end
19351936

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

0 commit comments

Comments
 (0)