You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository has been archived by the owner on Jun 9, 2023. It is now read-only.
The --output step somewhat expects that Base.compilecache has already been called from a regular copy of the identical system image first before it encounters a using statement. This lets it initialize the image properly (run the __init__ methods) and thereby reduces divergence from the normally tested configuration of packages. While it'll silently fall back to attempting to load it in-process, the result isn't necessarily pleasant.
(Or probably ideally, this package would bypass calling using entirely and just directly call _require_from_serialized in the compiler process on the return value of Base.compilecache from the helper process as this should yet further limit the opportunity for messy errors and other process noise to potentially slip in and cause divergence.)
The text was updated successfully, but these errors were encountered:
The --output step somewhat expects that Base.compilecache has already been called from a regular copy of the identical system image first before it encounters a using statement.
Are you saying to use some "wrapper script" that looks something like
using MyApp
Base.@ccallable julia_main
MyApp.julia_main()
end
and include that in the --output process instead of having the Base.@ccallable inside the package that gets precompiled. Should be an easy change if you think that is better.
The
--output
step somewhat expects thatBase.compilecache
has already been called from a regular copy of the identical system image first before it encounters ausing
statement. This lets it initialize the image properly (run the__init__
methods) and thereby reduces divergence from the normally tested configuration of packages. While it'll silently fall back to attempting to load it in-process, the result isn't necessarily pleasant.(Or probably ideally, this package would bypass calling
using
entirely and just directly call_require_from_serialized
in the compiler process on the return value ofBase.compilecache
from the helper process as this should yet further limit the opportunity for messy errors and other process noise to potentially slip in and cause divergence.)The text was updated successfully, but these errors were encountered: