modelbuilder: automatic mainmodule from run_global_phases is fictive
authorJean Privat <jean@pryen.org>
Thu, 17 Jul 2014 14:00:15 +0000 (10:00 -0400)
committerJean Privat <jean@pryen.org>
Thu, 17 Jul 2014 14:01:00 +0000 (10:01 -0400)
Signed-off-by: Jean Privat <jean@pryen.org>

src/modelbuilder.nit

index bb5d588..724d79f 100644 (file)
@@ -65,6 +65,7 @@ redef class ToolContext
                else
                        # We need a main module, so we build it by importing all modules
                        mainmodule = new MModule(modelbuilder.model, null, mmodules.first.name, new Location(mmodules.first.location.file, 0, 0, 0, 0))
+                       mainmodule.is_fictive = true
                        mainmodule.set_imported_mmodules(mmodules)
                end
                for phase in phases_list do