From: Jean Privat Date: Fri, 18 Dec 2015 15:59:40 +0000 (-0500) Subject: nitc: use mmodule.filepath at some place X-Git-Tag: v0.8~24^2~1 X-Git-Url: http://nitlanguage.org nitc: use mmodule.filepath at some place Signed-off-by: Jean Privat --- diff --git a/src/compiler/abstract_compiler.nit b/src/compiler/abstract_compiler.nit index 626607e..905812e 100644 --- a/src/compiler/abstract_compiler.nit +++ b/src/compiler/abstract_compiler.nit @@ -1659,7 +1659,7 @@ abstract class AbstractCompilerVisitor # This is used for the legacy FFI fun add_extern(mmodule: MModule) do - var file = mmodule.location.file.filename + var file = mmodule.filepath file = file.strip_extension(".nit") var tryfile = file + ".nit.h" if tryfile.file_exists then diff --git a/src/testing/testing_doc.nit b/src/testing/testing_doc.nit index 6bd8f0b..2c0e456 100644 --- a/src/testing/testing_doc.nit +++ b/src/testing/testing_doc.nit @@ -276,7 +276,7 @@ class NitUnitExecutor end var opts = new Array[String] if mmodule != null then - opts.add "-I {mmodule.location.file.filename.dirname}" + opts.add "-I {mmodule.filepath.dirname}" end var cmd = "{nitc} --ignore-visibility --no-color '{file}' {opts.join(" ")} >'{file}.out1' 2>&1