Dealing with optional dependencies in v1.5?

I haven’t thought about the actual problem much, but you might be able to work around that InitError by only running link_cairo when

isprecompiling() = ccall(:jl_generating_output, Cint, ()) == 1

returns false.

2 Likes