Merge: Interpreter FFI: custom compile_dir, use /tmp/ by default, and delete after...
authorJean Privat <jean@pryen.org>
Thu, 10 Mar 2016 04:55:19 +0000 (23:55 -0500)
committerJean Privat <jean@pryen.org>
Thu, 10 Mar 2016 04:55:19 +0000 (23:55 -0500)
commitca65f11c52d18ef60b9c16b6376f9b59ee4fa6ab
treef7f85c7478d417603b6a45165346a6e50ec61844
parent33dfac5882838bcfee59600440b573aa4c05a6f6
parent21e2f7415355d63953c5fbf1d88a73ac5a9b87e8
Merge: Interpreter FFI: custom compile_dir, use /tmp/ by default, and delete after execution

Generate native files in the `/tmp/` directory and delete them after execution. The directory can be customized using `--compile-dir`.

This should fix #1974 and #1975.

To support some other OS, we will need to use something other than `getpid` and `/tmp/`. We could also improve upon this by reusing the generated libraries between executions.

Pull-Request: #1976
Reviewed-by: Jean Privat <jean@pryen.org>