diff --git a/vlib/compiler/main.v b/vlib/compiler/main.v index de27ccf425..8434465d88 100644 --- a/vlib/compiler/main.v +++ b/vlib/compiler/main.v @@ -386,8 +386,8 @@ pub fn (v mut V) compile2() { println('all .v files before:') println(v.files) } - // v.add_v_files_to_compile() - v.files << v.dir + v.add_v_files_to_compile() + //v.files << v.dir if v.pref.is_verbose { println('all .v files:') println(v.files) @@ -806,9 +806,9 @@ pub fn (v &V) get_user_files() []string { // Need to store user files separately, because they have to be added after // libs, but we dont know which libs need to be added yet mut user_files := []string - + // See tools/preludes/README.md for more info about what preludes are - vroot := filepath.dir(vexe_path()) + vroot := filepath.dir(vexe_path()) preludes_path := filepath.join(vroot,'tools','preludes') if v.pref.is_live { user_files << filepath.join(preludes_path,'live_main.v') @@ -822,7 +822,7 @@ pub fn (v &V) get_user_files() []string { if v.pref.is_test && v.pref.is_stats { user_files << filepath.join(preludes_path,'tests_with_stats.v') } - + is_test := dir.ends_with('_test.v') mut is_internal_module_test := false if is_test {