Skip to content

Commit

Permalink
remove deprecation about __precompile__(true)
Browse files Browse the repository at this point in the history
  • Loading branch information
KristofferC committed Aug 5, 2018
1 parent 5d43217 commit 70b72c4
Showing 1 changed file with 3 additions and 5 deletions.
8 changes: 3 additions & 5 deletions base/loading.jl
Original file line number Diff line number Diff line change
Expand Up @@ -769,16 +769,14 @@ precompilableerror(@nospecialize ex) = false

# Call __precompile__(false) at the top of a tile prevent it from being precompiled (false)
"""
__precompile__(false)
__precompile__(isprecompilable::Bool)
Specify that the file calling this function is not precompilable.
Specify that the file calling this function is not precompilable, defaulting to `true`.
If a module or file is *not* safely precompilable, it should call `__precompile__(false)` in
order to throw an error if Julia attempts to precompile it.
"""
@noinline function __precompile__(isprecompilable::Bool=true)
if isprecompilable
depwarn("__precompile__() is now the default", :__precompile__)
elseif 0 != ccall(:jl_generating_output, Cint, ())
if ccall(:jl_generating_output, Cint, ()) != 0
throw(PrecompilableError())
end
nothing
Expand Down

0 comments on commit 70b72c4

Please sign in to comment.