v2: a simple fix

pull/3497/head
Alexander Medvednikov 2020-01-19 02:44:18 +01:00
parent 09d1eb7c55
commit b1602c72ad
1 changed files with 5 additions and 5 deletions

View File

@ -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 {