From 3ea9868d0ead091cdd1b3bd15f8304227e8b7bd5 Mon Sep 17 00:00:00 2001 From: Delyan Angelov Date: Mon, 5 Apr 2021 11:04:31 +0300 Subject: [PATCH] v -watch: rerun compilation after `v self` too --- cmd/tools/vwatch.v | 3 +++ 1 file changed, 3 insertions(+) diff --git a/cmd/tools/vwatch.v b/cmd/tools/vwatch.v index 0db0a4a86b..5f273279d8 100644 --- a/cmd/tools/vwatch.v +++ b/cmd/tools/vwatch.v @@ -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 }