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

v help: document -verbose flag

This commit is contained in:
Delyan Angelov 2019-12-28 10:41:21 +02:00 committed by Alexander Medvednikov
parent ec6a8cc9fd
commit 72acbad3f0

View File

@ -38,6 +38,7 @@ Options/commands:
-o <file>.js Produce JavaScript source. -o <file>.js Produce JavaScript source.
-prod Build an optimized executable. -prod Build an optimized executable.
-v, version Display compiler version and git hash of the compiler source. -v, version Display compiler version and git hash of the compiler source.
-verbose Produce a verbose log about what the compiler is doing, where it seeks for files and so on.
-live Enable hot code reloading (required by functions marked with [live]). -live Enable hot code reloading (required by functions marked with [live]).
-os <OS> Produce an executable for the selected OS. -os <OS> Produce an executable for the selected OS.
OS can be linux, mac, windows, msvc. OS can be linux, mac, windows, msvc.
@ -56,8 +57,8 @@ Options for debugging/troubleshooting v programs:
-g Generate debugging information in the backtraces. Add *V* line numbers to the generated executable. -g Generate debugging information in the backtraces. Add *V* line numbers to the generated executable.
-cg Same as -g, but add *C* line numbers to the generated executable instead of *V* line numbers. -cg Same as -g, but add *C* line numbers to the generated executable instead of *V* line numbers.
-keep_c Do NOT remove the generated .tmp.c files after compilation. -keep_c Do NOT remove the generated .tmp.c files after compilation.
It is useful when using debuggers like gdb/visual studio, when given after -g / -cg . It is useful when using debuggers like gdb/visual studio, when given after `-g` / `-cg`.
-show_c_cmd Print the full C compilation command and how much time it took. -show_c_cmd Print the full C compilation command and how much time it took. See also `-verbose`.
-cc <ccompiler> Specify which C compiler you want to use as a C backend. -cc <ccompiler> Specify which C compiler you want to use as a C backend.
The C backend compiler should be able to handle C99 compatible C code. The C backend compiler should be able to handle C99 compatible C code.
Common C compilers are gcc, clang, tcc, icc, cl... Common C compilers are gcc, clang, tcc, icc, cl...