mirror of
https://github.com/vlang/v.git
synced 2023-08-10 21:13:21 +03:00
wasm: add a webassembly compiler backend, based on using binaryen (#17368)
This commit is contained in:
9
examples/wasm/hello_world.v
Normal file
9
examples/wasm/hello_world.v
Normal file
@@ -0,0 +1,9 @@
|
||||
//
|
||||
// $ v -b wasm hello_world.v
|
||||
// $ wasmer hello_world.wasm
|
||||
// Hello WASI!
|
||||
//
|
||||
|
||||
fn main() {
|
||||
println('Hello WASI!')
|
||||
}
|
||||
Reference in New Issue
Block a user