mirror of
https://github.com/vlang/v.git
synced 2023-08-10 21:13:21 +03:00
compiler: info message when trying to use an old command
This commit is contained in:
parent
6dea2359ab
commit
368e8e85a8
@ -495,7 +495,11 @@ pub fn (v V) run_compiled_executable_and_exit() {
|
|||||||
pub fn (v &V) v_files_from_dir(dir string) []string {
|
pub fn (v &V) v_files_from_dir(dir string) []string {
|
||||||
mut res := []string
|
mut res := []string
|
||||||
if !os.file_exists(dir) {
|
if !os.file_exists(dir) {
|
||||||
verror("$dir doesn't exist!")
|
if dir == 'compiler' && os.dir_exists('vlib') {
|
||||||
|
println('looks like you are trying to build V with an old command')
|
||||||
|
println('use `v v.v` instead of `v -o v compiler`')
|
||||||
|
}
|
||||||
|
verror("$dir doesn't exist")
|
||||||
} else if !os.dir_exists(dir) {
|
} else if !os.dir_exists(dir) {
|
||||||
verror("$dir isn't a directory")
|
verror("$dir isn't a directory")
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user