compile: makes compile_separate_module public
[nit.git] / src / compiling / compiling.nit
index b71b827..414c6f6 100644 (file)
@@ -90,14 +90,14 @@ end
 
 redef class MMModule
        # Compile the sep or glob files (of the current module only)
-       private fun compile_separate_module(cprogram: CProgram)
+       fun compile_separate_module(cprogram: CProgram)
        do
                var tc = cprogram.program.tc
                tc.info("Generating C code for module: {full_name}",2)
                var v = new CompilerVisitor(self, cprogram)
                v.add_decl("#include <nit_common.h>")
 
-               var native_name = location.file.strip_extension(".nit")
+               var native_name = location.file.filename.strip_extension(".nit")
                var native_header = native_name + "_nit.h"
                if native_header.file_exists then
                        v.add_decl("#include <{native_header.basename("")}>")