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

compiler: new attributes, prelude customization

This commit is contained in:
Julia K
2020-05-26 14:12:18 +02:00
committed by GitHub
parent 748b1d3381
commit 2b27072fac
5 changed files with 118 additions and 15 deletions

View File

@ -62,3 +62,11 @@ These build flags are enabled on `build` and `run` as long as the backend is set
-shared
Tell V to compile a shared object instead of an executable.
The resulting file extension will be `.dll` on Windows and `.so` on Unix systems
-no-prelude
Prevents V from generating a prelude in generated .c files, useful for freestanding targets
where eg. you replace C standard library with your own, or some definitions/headers break something.
-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>.