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

parser: implement support for -Wimpure-v (#7195)

This commit is contained in:
Delyan Angelov
2020-12-08 18:52:24 +02:00
committed by GitHub
parent 90c1c639fe
commit d5915bde7c
5 changed files with 72 additions and 23 deletions

View File

@ -126,8 +126,15 @@ The build flags are shared by the build and run commands:
Treat all warnings as errors, even in development builds.
-Wfatal-errors
Unconditionally exit with exit(1) after the first error. Useful for scripts/tooling that calls V.
Unconditionally exit with exit(1) after the first error.
Useful for scripts/tooling that calls V.
-Wimpure-v
Warn about using C. or JS. symbols in plain .v files.
These should be moved in .c.v and .js.v .
NB: in the future, this will be turned on by default,
and will become an error, after vlib is cleaned up.
For C-specific build flags, use `v help build-c`.
See also: