Method type signatures generally depend on command ARGS which get passed to entry point eg julia_main(). Shouldn’t create_app let us specify a list of example ARGS that it can execute and compile against?
Not quite sure what do you mean, but what I do in my project is like the following.
We know that create_app
accept an argument precompile_execution_file
, and I write the file like that:
old_ARGS = copy(ARGS)
empty!(ARGS)
# set some ARGS
julia_main()
# set another ARGS
julia_main()
# and so on
empty!(ARGS)
for i = 1 : length(old_ARGS)
push!(ARGS, old_ARGS[i])
end
2 Likes
Thanks for your help! Made me look at the PackageCompiler example folder which uses similar technique