Subject:
Re: [ruby-ffi] [ANN] ffi-compiler 0.0.1
From:
Wayne Meissner
Date:
1/15/13 6:14 PM
To:
ruby-ffi@googlegroups.com

On Wednesday, 16 January 2013 10:09:39 UTC+11, Luis Lavena wrote:

Noticed in the example that result of compilation is left in the ext folder. Assume that is to avoid clash wih ruby trying to load the shared library?


You're reading too much intent into a quick&dirty late night hack :-)

It leaves the library where it is because that was the simplest thing that worked.  Once it worked as a proof of concept, I shipped it, as I figured we can refine it as we go.

I think for the next version, I'll move to a rake task style, rather than generating a Rakefile (i.e. similar to what ruby-llvm does).  It increases the transparency of what is happening, which will make it easier to debug when things don't work.  The current way is based on the idea of "build something like mkmf, but for FFI".