From 46dbf2f4520ba13181f9d8b9140e0b7e01549d43 Mon Sep 17 00:00:00 2001 From: Jean Privat Date: Thu, 4 Dec 2014 22:36:04 -0500 Subject: [PATCH] nitls: visit group for relevant outputs Signed-off-by: Jean Privat --- src/nitls.nit | 15 ++++++++++++--- 1 file changed, 12 insertions(+), 3 deletions(-) diff --git a/src/nitls.nit b/src/nitls.nit index 3e6126a..366c4fc 100644 --- a/src/nitls.nit +++ b/src/nitls.nit @@ -172,17 +172,26 @@ if sum == 0 then end end +# Identify all relevant files for a in files do + var g = mb.get_mgroup(a) var mp = mb.identify_file(a) - tc.check_errors - if mp != null and not opt_paths.value then + if g != null and not opt_project.value then + mb.visit_group(g) + end +end + +# Load modules to get more informations +for mp in mb.identified_files.values do + if mp == null then continue + if not opt_paths.value or opt_depends.value then var mm = mb.load_module(mp.filepath) if mm != null and opt_depends.value then mb.build_module_importation(mm) end - tc.check_errors end end +#tc.check_errors var ot = new ProjTree(tc) -- 1.7.9.5