File tree Expand file tree Collapse file tree 1 file changed +7
-1
lines changed Expand file tree Collapse file tree 1 file changed +7
-1
lines changed Original file line number Diff line number Diff line change @@ -16,7 +16,13 @@ see also `v help build`.
16
16
Pass the provided flag as is to the C compiler.
17
17
Can be specified multiple times to provide multiple flags.
18
18
Use quotes to wrap the flag argument if it contains spaces.
19
-
19
+
20
+ V also supports the environment variables CFLAGS and LDFLAGS.
21
+ The contents of the CFLAGS variable will be prepended as is, at the start
22
+ of the C backend command, right after the name of the compiler.
23
+ The contents of the LDFLAGS variable will be appended as is, at the end
24
+ of the C backend command, after all other options.
25
+
20
26
-cstrict
21
27
Turn on additional C warnings. This slows down compilation
22
28
slightly (~10-10% for gcc), but sometimes provides better diagnosis.
You can’t perform that action at this time.
0 commit comments