mirror of
https://github.com/vlang/v.git
synced 2023-08-10 21:13:21 +03:00
compiler: move prelude files to tools/preludes/
This commit is contained in:

committed by
Alexander Medvednikov

parent
56421beb8a
commit
0d93eeb3fe
@ -828,7 +828,10 @@ 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
|
||||
preludes_path := filepath.join(v.pref.vlib_path,'compiler','preludes')
|
||||
|
||||
// See tools/preludes/README.md for more info about what preludes are
|
||||
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')
|
||||
}
|
||||
@ -841,6 +844,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 {
|
||||
|
Reference in New Issue
Block a user