compile: use shortest path from the compiledir to the outname
authorJean Privat <jean@pryen.org>
Thu, 30 Oct 2014 00:55:15 +0000 (20:55 -0400)
committerJean Privat <jean@pryen.org>
Thu, 30 Oct 2014 00:55:15 +0000 (20:55 -0400)
Signed-off-by: Jean Privat <jean@pryen.org>

src/compiler/abstract_compiler.nit

index 0562379..dbf3794 100644 (file)
@@ -342,8 +342,7 @@ class MakefileToolchain
 
                var outname = outfile(mainmodule)
 
-               var orig_dir = compile_dir.relpath(".")
-               var outpath = orig_dir.join_path(outname).simplify_path
+               var outpath = compile_dir.relpath(outname)
                var makename = makefile_name(mainmodule)
                var makepath = "{compile_dir}/{makename}"
                var makefile = new OFStream.open(makepath)