Skip to content

Commit

Permalink
note about compile_shlib
Browse files Browse the repository at this point in the history
  • Loading branch information
MasonProtter committed Nov 10, 2023
1 parent b83baf2 commit 7502758
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/StaticCompiler.jl
Original file line number Diff line number Diff line change
Expand Up @@ -129,6 +129,8 @@ compile_shlib(funcs::Array, [path::String="./"]; filename="libfoo", demangle=tru
```
As `compile_executable`, but compiling to a standalone `.dylib`/`.so` shared library.
Arguments and returned values from `compile_shlib` must be native objects such as `Int`, `Float64`, or `Ptr`. They cannot be things like `Tuple{Int, Int}` because that is not natively sized. Such objects need to be passed by reference instead of by value.
If `demangle` is set to `false`, compiled function names are prepended with "julia_".
### Examples
Expand Down

0 comments on commit 7502758

Please sign in to comment.