From 5152cd4a62116efb13f640b882ad5c9efdfeb9b5 Mon Sep 17 00:00:00 2001 From: pancake Date: Thu, 29 Apr 2021 08:47:11 +0200 Subject: [PATCH] v help: add a `v help build-native` section (#9906) --- cmd/v/help/build-native.txt | 17 +++++++++++++++++ cmd/v/help/build.txt | 2 ++ 2 files changed, 19 insertions(+) create mode 100644 cmd/v/help/build-native.txt 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`.