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:
parent
b951d679ca
commit
ba512a6a8e
@ -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.
|
||||||
|
Loading…
Reference in New Issue
Block a user