Skip to content

Commit d3cc67a

Browse files
gbaraldiaviatesksimeonschaub
authored
Use invokelatest for exiting because exit doesn't exist in the compiler (#59520)
Co-authored-by: Shuhei Kadowaki <[email protected]> Co-authored-by: Simeon David Schaub <[email protected]>
1 parent 7de5585 commit d3cc67a

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Compiler/src/precompile.jl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -423,7 +423,7 @@ function compile_and_emit_native(worlds::Vector{UInt},
423423
isa(exc, Core.TrimFailure) || rethrow()
424424
# The verification check failed. The error message should already have
425425
# been printed, so give up here and exit (w/o a stack trace).
426-
exit(1)
426+
invokelatest(exit, 1)
427427
end
428428

429429
# Step 5: Always set newly_inferred global for serialization use

0 commit comments

Comments
 (0)