v help: add a `v help build-native` section (#9906)

pull/9926/head
pancake 2021-04-29 08:47:11 +02:00 committed by GitHub
parent c8e07b28e2
commit 5152cd4a62
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 19 additions and 0 deletions

View File

@ -0,0 +1,17 @@
Usage: v -native [-options] ['run'] <target.v|target_directory> [run options]
This command compiles the given target, along with their dependencies, into an executable using the Native code generation backend.
For more general build help, see also `v help build`.
# Interfacing the Native code generation, passing options to it:
-v
Display the assembly code generated (that may change to `-showasm` in the future)
-arch <arch>
Select target architecture, right now only `arm64` and `amd64` are supported
-os <os>, -target-os <os>
Change the target OS that V compiles for.
The supported targets for the native backend are: `macos`, `linux`

View File

@ -155,5 +155,7 @@ NB: the build flags are shared with the run command too:
For C-specific build flags, use `v help build-c`.
For Native-specific build flags, use `v help build-native`.
See also:
`v help run` for documentation regarding `v run`.