From a85707246ff9f4a25e7ebe70a416c65c45c024f7 Mon Sep 17 00:00:00 2001 From: Delyan Angelov Date: Thu, 21 Oct 2021 16:32:57 +0300 Subject: [PATCH] help: document `-skip-unused` in the `v help` output. --- cmd/v/help/build.txt | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/cmd/v/help/build.txt b/cmd/v/help/build.txt index a81e593bf7..a23be49eb6 100644 --- a/cmd/v/help/build.txt +++ b/cmd/v/help/build.txt @@ -96,6 +96,12 @@ NB: the build flags are shared with the run command too: -profile-no-inline Skip [inline] functions when profiling. + -skip-unused + Skip generating C/JS code for functions, that are provably not used by your project. + This speeds up compilation, and reduces the generated output size. + It is still experimental, due to historical reasons, but please do try it, + and report issues, if compilation breaks with that option for your program. + -stats Enable more detailed statistics reporting, while compiling test files. You can use that with `v test` too, for example: