ffi / ffi-compiler

Apache License 2.0
32 stars 10 forks source link

Few improvements #7

Closed davispuh closed 10 years ago

davispuh commented 10 years ago

add_include_path and add_define methods so that when compiling can specify those in Rakefile

Add load path where rb_file is located so that require works correctly for export.

Remove /dev/null as it wont work in Windows, it will complain that file not found. In Windows it's > nul but that won't work for Linux, so we just save output to file and because that directory is tmp it will be deleted after anyway.

davispuh commented 10 years ago

So thoughts?

davispuh commented 10 years ago

yeah, that's a good idea. I really only fixed things which I actually encountered. But this is worth fixing, only I won't bother for now, probably sometime later or you can do it yourself.