i have tried v -b native -prod hello.v
but most modules are not supported.
// hello.v
println('Hello, World!')
How vlang compile static binary ?
Updated :
i found another parameter -freestanding
for static compile.
$ v -freestanding hello.v
$ file hello
hello: ELF 64-bit LSB executable, x86-64, version 1 (SYSV), statically linked, stripped
it can compile hello.v
sucessfully but it flow error with -prod
flag : v -freestanding -prod hello.v
any good idea ??