mirror of
https://github.com/vlang/v.git
synced 2023-08-10 21:13:21 +03:00
v -watch: rerun compilation after v self
too
This commit is contained in:
parent
7a9607b028
commit
3ea9868d0e
@ -125,6 +125,9 @@ fn (mut context Context) get_stats_for_affected_vfiles() []VFileStat {
|
||||
newstats << VFileStat{fullpath, mtime}
|
||||
}
|
||||
}
|
||||
// always add the v compiler itself, so that if it is recompiled with `v self`
|
||||
// the watcher will rerun the compilation too
|
||||
newstats << VFileStat{context.vexe, os.file_last_mod_unix(context.vexe)}
|
||||
return newstats
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user