mirror of
https://github.com/vlang/v.git
synced 2023-08-10 21:13:21 +03:00
v.pref: make -b unknown_backend an error, with a more informative diagnostic message
This commit is contained in:
@@ -34,15 +34,16 @@ If you have not set it, a suitable platform specific folder (like /tmp) will be
|
||||
NB: the build flags are shared with the run command too:
|
||||
|
||||
-b <backend>, -backend <backend>
|
||||
Specify the backend to use while building the executable.
|
||||
Specifies the backend that will be used for building the executable.
|
||||
Current list of supported backends:
|
||||
* `c` (default) - V outputs C source code which is passed to a C compiler to be compiled.
|
||||
* `interpret` - Same as `v interpret` to run the V program
|
||||
* `c` (default) - V outputs C source code, which is then passed to a C compiler.
|
||||
* `go` - V outputs Go source code, which is then passed to a Go compiler.
|
||||
* `interpret` - V will interpret the V program directly, instead of compiling it first. Same as `v interpret file.v`.
|
||||
* `js` - V outputs JS source code which can be passed to NodeJS to be ran.
|
||||
* `js_browser` - V outputs JS source code ready for the browser.
|
||||
* `js_node` - V outputs JS source code to run with nodejs.
|
||||
* `js_freestanding` - V outputs JS source code with no hard runtime dependency.
|
||||
* `native` - V outputs native executable (see -arch x64|arm64 and -os linux|macos) (EXPERIMENTAL).
|
||||
* `native` - V outputs a native executable directly (see -arch x64|arm64 and -os linux|macos) (EXPERIMENTAL).
|
||||
|
||||
-d <flag>[=<value>], -define <flag>[=<value>]
|
||||
Define the provided flag.
|
||||
|
||||
Reference in New Issue
Block a user