1
0
mirror of https://github.com/vlang/v.git synced 2023-08-10 21:13:21 +03:00

v: add -cstrict for optionally turning on all ccoptions.wargs

This commit is contained in:
Delyan Angelov
2021-04-15 14:55:36 +03:00
parent 5ae3b81337
commit d90be54850
3 changed files with 16 additions and 5 deletions

View File

@@ -16,6 +16,10 @@ see also `v help build`.
Pass the provided flag as is to the C compiler.
Can be specified multiple times to provide multiple flags.
Use quotes to wrap the flag argument if it contains spaces.
-cstrict
Turn on additional C warnings. This slows down compilation
slightly (~10-10% for gcc), but sometimes provides better diagnosis.
-showcc
Prints the C command that is used to build the program.