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

compiler: implement -W and -reuse-tmpc

This commit is contained in:
Delyan Angelov
2020-10-24 20:29:24 +03:00
parent 42da37e900
commit 8b01146b90
8 changed files with 31 additions and 11 deletions

View File

@@ -58,3 +58,6 @@ These build flags are enabled on `build` and `run` as long as the backend is set
-custom-prelude <path>
Useful for similar use-case as above option, except it replaces V-generated prelude with
your custom one loaded from specified <path>.
-reuse-tmpc
Do not remove the temporary .tmp.c and .tmp.c.rsp files. Also do not use a random prefix for them, so they would be fixed and predictable.

View File

@@ -118,6 +118,9 @@ The build flags are shared by the build and run commands:
C GEN: 103ms
C tcc: 95ms
-W
Treat all warnings as errors, even in development builds.
For C-specific build flags, use `v help build-c`.
See also: