Skip to content

Create an empty project:

sh
$ xmake create -l zig -t console test
xmake.lua
lua
add_rules("mode.debug", "mode.release")

target("test")
     set_kind("binary")
     add_files("src/*.zig")

For more examples, see: Zig Examples