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
Or if ccall/@ccall don't wont to compile then I suppose StaticTools.@symbolcall should definitely work, e.g.
julia> using StaticTools
julia> function sys(s)
@symbolcall system(pointer(s)::Ptr{UInt8})::Int
end
sys (generic function with 1 method)
julia> sys(c"pwd")
/Users/me
0
(though could get even more cursed / cause UB if done wrong, since that has no safety features)
Is it possible to call external programs in a code that can be staticcally compiled with StaticCompiler (e.g. a shell script test.sh)?
The text was updated successfully, but these errors were encountered: