File tree 2 files changed +10
-3
lines changed
2 files changed +10
-3
lines changed Original file line number Diff line number Diff line change 633
633
634
634
# only run if precompiling
635
635
if 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" )
637
644
end
638
645
639
646
end # module
Original file line number Diff line number Diff line change 26
26
# listenany allows changing port if that one is already in use, so check the actual port
27
27
_port = HTTP. port (server)
28
28
url = " https://localhost:$_port "
29
-
29
+
30
30
env = [" JULIA_NO_VERIFY_HOSTS" => " localhost" ,
31
31
" JULIA_SSL_NO_VERIFY_HOSTS" => nothing ,
32
32
" JULIA_ALWAYS_VERIFY_HOSTS" => nothing ]
33
-
33
+
34
34
withenv (env... ) do
35
35
@compile_workload begin
36
36
HTTP. get (url);
You can’t perform that action at this time.
0 commit comments