From: Alexis Laferrière Date: Fri, 26 Jun 2015 23:02:49 +0000 (-0400) Subject: src/niti: mkdir the compile dir only if it doesn't exist X-Git-Tag: v0.7.6~2^2~2 X-Git-Url: http://nitlanguage.org src/niti: mkdir the compile dir only if it doesn't exist Signed-off-by: Alexis Laferrière --- diff --git a/src/interpreter/dynamic_loading_ffi/on_demand_compiler.nit b/src/interpreter/dynamic_loading_ffi/on_demand_compiler.nit index f9c8fb5..5953647 100644 --- a/src/interpreter/dynamic_loading_ffi/on_demand_compiler.nit +++ b/src/interpreter/dynamic_loading_ffi/on_demand_compiler.nit @@ -75,7 +75,7 @@ redef class AModule var compile_dir = v.compile_dir var foreign_code_lib_path = v.foreign_code_lib_path(mmodule) - compile_dir.mkdir + if not compile_dir.file_exists then compile_dir.mkdir # Compile the common FFI part ensure_compile_ffi_wrapper