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
By discussing with @diml in #1832 (thanks again), I discovered the (modes object) stanza in order to build a C library from OCaml code super easily. However, in my case, we wrote a little piece of C wrapper around that library in order to have more C-like access points.
I think it would be nice to be able to declare this wrapper as C stubs in the (executable ...) stanza, that is to have (c_names ...) allowed in there (and probably (cxx_names ...) as well). Do you think it's reasonable?
The text was updated successfully, but these errors were encountered:
In my case, it's indeed a pure C piece of code that depends on my OCaml library, but the goal is to build an object file and not an executable. However, as I guess it's very similar, could that be a feature in this PR?
Hello,
By discussing with @diml in #1832 (thanks again), I discovered the
(modes object)
stanza in order to build a C library from OCaml code super easily. However, in my case, we wrote a little piece of C wrapper around that library in order to have more C-like access points.I think it would be nice to be able to declare this wrapper as C stubs in the
(executable ...)
stanza, that is to have(c_names ...)
allowed in there (and probably(cxx_names ...)
as well). Do you think it's reasonable?The text was updated successfully, but these errors were encountered: