diff --git a/cmd/v/help/build-native.txt b/cmd/v/help/build-native.txt new file mode 100644 index 0000000000..8522912d15 --- /dev/null +++ b/cmd/v/help/build-native.txt @@ -0,0 +1,17 @@ +Usage: v -native [-options] ['run'] [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 + Select target architecture, right now only `arm64` and `amd64` are supported + + -os , -target-os + Change the target OS that V compiles for. + + The supported targets for the native backend are: `macos`, `linux` diff --git a/cmd/v/help/build.txt b/cmd/v/help/build.txt index d7ed0486a1..ed1f713c95 100644 --- a/cmd/v/help/build.txt +++ b/cmd/v/help/build.txt @@ -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`.