From aa5f733f016ee6e71295b352b8c37fbe00a3cf99 Mon Sep 17 00:00:00 2001 From: Delyan Angelov Date: Mon, 5 Apr 2021 23:52:39 +0300 Subject: [PATCH] tools: add -cflags -Werror step to `v test-all` --- cmd/tools/vtest-all.v | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/cmd/tools/vtest-all.v b/cmd/tools/vtest-all.v index 45c30db5ed..10b04ac6bb 100644 --- a/cmd/tools/vtest-all.v +++ b/cmd/tools/vtest-all.v @@ -57,6 +57,10 @@ fn get_all_commands() []Command { line: '$vexe -o vtmp cmd/v' okmsg: 'V can compile itself.' } + res << Command{ + line: '$vexe -o vtmp_werror -cflags -Werror cmd/v' + okmsg: 'V can compile itself with -cflags -Werror too.' + } res << Command{ line: '$vexe $vargs -progress test-cleancode' okmsg: 'All important .v files are invariant when processed with `v fmt`'