Skip to content
Permalink

Comparing changes

This is a direct comparison between two commits made in this repository or its related repositories. View the default comparison for this range or learn more about diff comparisons.

Open a pull request

Create a new pull request by comparing changes across two branches. If you need to, you can also . Learn more about diff comparisons here.
base repository: JuliaLang/julia
Failed to load repositories. Confirm that selected base ref is valid, then try again.
Loading
base: 70b72c46eeb825de4e8dc84af1b9ccd7fd6d14e5
Choose a base ref
..
head repository: JuliaLang/julia
Failed to load repositories. Confirm that selected head ref is valid, then try again.
Loading
compare: 4fea09eefc5293cd0f786eb4b6e0d76a024dde8e
Choose a head ref
Showing with 2 additions and 2 deletions.
  1. +2 −2 base/loading.jl
4 changes: 2 additions & 2 deletions base/loading.jl
Original file line number Diff line number Diff line change
@@ -771,12 +771,12 @@ precompilableerror(@nospecialize ex) = false
"""
__precompile__(isprecompilable::Bool)
Specify that the file calling this function is not precompilable, defaulting to `true`.
Specify wheter the file calling this function is 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 ccall(:jl_generating_output, Cint, ()) != 0
if !isprecompilable && ccall(:jl_generating_output, Cint, ()) != 0
throw(PrecompilableError())
end
nothing