Skip to content

Commit f7aaa33

Browse files
committed
Fix.
1 parent c4eea14 commit f7aaa33

File tree

1 file changed

+7
-1
lines changed

1 file changed

+7
-1
lines changed

src/core/context.jl

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -169,7 +169,13 @@ function handle_error(reason::Cstring)
169169
end
170170

171171
function _install_handlers()
172-
Base.generating_output() && return
172+
precompiling = if VERSION >= v"1.11"
173+
Base.generating_output()
174+
else
175+
ccall(:jl_generating_output, Cint, ()) != 0 && JLOptions().incremental == 0
176+
end
177+
precompiling && return
178+
173179
handler = @cfunction(handle_error, Cvoid, (Cstring,))
174180
API.LLVMInstallFatalErrorHandler(handler)
175181
end

0 commit comments

Comments
 (0)