Cross-Compilation Support
Target Flags
You can now use target-os
and target-arch
flags to specify operational system and architecture when using neva build
command. This is only supported when --target=native
(or omitted, which is the same). You must always use these flags in pair or omit both of them, they cannot be used in separate
neva build --target-os=windows --target-arch=arm64 examples/hello_world
Osarch Command
New command neva osarch
lists all possible combinations of target-os
and target-arch
values. At the moment of publishing this release, the list is the following:
aix/ppc64
android/386
android/amd64
android/arm
android/arm64
darwin/amd64
darwin/arm64
dragonfly/amd64
freebsd/386
freebsd/amd64
freebsd/arm
freebsd/arm64
freebsd/riscv64
illumos/amd64
ios/amd64
ios/arm64
js/wasm
linux/386
linux/amd64
linux/arm
linux/arm64
linux/loong64
linux/mips
linux/mips64
linux/mips64le
linux/mipsle
linux/ppc64
linux/ppc64le
linux/riscv64
linux/s390x
netbsd/386
netbsd/amd64
netbsd/arm
netbsd/arm64
openbsd/386
openbsd/amd64
openbsd/arm
openbsd/arm64
openbsd/ppc64
openbsd/riscv64
plan9/386
plan9/amd64
plan9/arm
solaris/amd64
wasip1/wasm
windows/386
windows/amd64
windows/arm
windows/arm64
CLI Help Improved
This release closes #820 issue by improving the --help
flag and help
command (which are the same thing) by adding more information about build
command, especially using --target
(lists supported targets such as native
, go
, wasm
, json
and dot
) and corresponding --target-os
and --target-arch
flags