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

v help: describe CFLAGS and LDFLAGS support in v help build-c

This commit is contained in:
Delyan Angelov 2021-04-22 18:12:28 +03:00
parent b951d679ca
commit ba512a6a8e
No known key found for this signature in database
GPG Key ID: 66886C0F12D595ED

View File

@ -17,6 +17,12 @@ see also `v help build`.
Can be specified multiple times to provide multiple flags. Can be specified multiple times to provide multiple flags.
Use quotes to wrap the flag argument if it contains spaces. Use quotes to wrap the flag argument if it contains spaces.
V also supports the environment variables CFLAGS and LDFLAGS.
The contents of the CFLAGS variable will be prepended as is, at the start
of the C backend command, right after the name of the compiler.
The contents of the LDFLAGS variable will be appended as is, at the end
of the C backend command, after all other options.
-cstrict -cstrict
Turn on additional C warnings. This slows down compilation Turn on additional C warnings. This slows down compilation
slightly (~10-10% for gcc), but sometimes provides better diagnosis. slightly (~10-10% for gcc), but sometimes provides better diagnosis.