-
Notifications
You must be signed in to change notification settings - Fork 82
Closed
Description
On ARM processors, like Apple Silicon, registering an UDF throws with cfunction: closures are not supported on this platform:
julia> using SQLite
julia> db = SQLite.DB(":memory:")
julia> SQLite.register(db, exp, name="myfunc")
ERROR: cfunction: closures are not supported on this platformThis errors both before and after #333. As I understand, the issue is not in anonymous functions, but in closing over func here
Lines 215 to 218 in dce0b6c
| f = | |
| (context, nargs, values) -> | |
| wrap_scalarfunc(func, context, nargs, values) | |
| cfunc = @cfunction($f, Cvoid, (Ptr{Cvoid}, Cint, Ptr{Ptr{Cvoid}})) |
Do not know how to fix this exactly, but should be possible – given discussion at JuliaLang/julia#27174 and in linked issues.
Metadata
Metadata
Assignees
Labels
No labels