permutationlock / zig_hello_emcc

A hello world example that can build to target native targets and Emscripten

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Zig "Hello, emcc!"

A hello world example that will compile to emscripten targets. Requires that emcc is in your path.

To build for native targets and run:

> zig build
> ./zig-out/bin/hello_emcc
Hello, emcc!

To build for emscripten and host the application:

zig build -Dtarget=wasm32-emscripten
go run server.go

Then go to http://127.0.0.1:8083 in a browser to see the output.

About

A hello world example that can build to target native targets and Emscripten

License:MIT License


Languages

Language:Zig 87.1%Language:Go 12.9%