src/niti: mkdir the compile dir only if it doesn't exist
authorAlexis Laferrière <alexis.laf@xymus.net>
Fri, 26 Jun 2015 23:02:49 +0000 (19:02 -0400)
committerAlexis Laferrière <alexis.laf@xymus.net>
Fri, 26 Jun 2015 23:25:10 +0000 (19:25 -0400)
Signed-off-by: Alexis Laferrière <alexis.laf@xymus.net>

src/interpreter/dynamic_loading_ffi/on_demand_compiler.nit

index f9c8fb5..5953647 100644 (file)
@@ -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