mirror of
https://github.com/vlang/v.git
synced 2023-08-10 21:13:21 +03:00
v2: a simple fix
This commit is contained in:
parent
09d1eb7c55
commit
b1602c72ad
@ -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 {
|
||||
|
Loading…
Reference in New Issue
Block a user