File tree Expand file tree Collapse file tree 2 files changed +10
-3
lines changed Expand file tree Collapse file tree 2 files changed +10
-3
lines changed Original file line number Diff line number Diff line change 633633
634634# only run if precompiling
635635if VERSION >= v " 1.9.0-0" && ccall (:jl_generating_output , Cint, ()) == 1
636- include (" precompile.jl" )
636+ do_precompile = true
637+ try
638+ Sockets. getalladdrinfo (" localhost" )
639+ catch ex
640+ @debug " Skipping precompilation workload because localhost cannot be resolved. Check firewall settings" exception= (ex,catch_backtrace ())
641+ do_precompile = false
642+ end
643+ do_precompile && include (" precompile.jl" )
637644end
638645
639646end # module
Original file line number Diff line number Diff line change 2626 # listenany allows changing port if that one is already in use, so check the actual port
2727 _port = HTTP. port (server)
2828 url = " https://localhost:$_port "
29-
29+
3030 env = [" JULIA_NO_VERIFY_HOSTS" => " localhost" ,
3131 " JULIA_SSL_NO_VERIFY_HOSTS" => nothing ,
3232 " JULIA_ALWAYS_VERIFY_HOSTS" => nothing ]
33-
33+
3434 withenv (env... ) do
3535 @compile_workload begin
3636 HTTP. get (url);
You can’t perform that action at this time.
0 commit comments