zig [files]
Zig is a general-purpose programming language and toolchain for maintaining robust, optimal, and reusable software
Arguments
Name | Description |
---|
files | filepaths |
Subcommands
Name | Description |
---|
build | Build project from build.zig |
init-exe | Initializes a `zig build` project in the current working directory |
init-lib | Initializes a `zig build` project in the current working directory |
ast-check | Given a .zig source file, reports any compile errors that can be ascertained on the basis of the source code alone, without target information or type checking. If [file] is omitted, stdin is used. |
build-exe | Create executable from source or object files |
build-lib | Create library from source or object files |
build-obj | Create library from source or object files |
fmt | Reformat Zig source into canonical form |
run | Create executable and run immediately |
test | Create and run a test build |
translate-c | Convert C code to Zig code |
ar | LLVM Archiver |
cc | Use Zig as a drop-in C compiler |
c++ | Use Zig as a drop-in C++ compiler |
dll-tool | LLVM dll tool |
lib | Use Zig as a drop-in lib.exe |
ranlib | LLVM Ranlib : This program generates an index to speed access to archives |
env | Print lib path, std path, cache directory, and version |
help | Print help and exit |
libc | Detect the native libc installation and print the resulting paths to stdout |
targets | List available compilation targets |
version | Print version number and exit |
zen | Print Zen of Zig and exit |
Options
Name | Description |
---|
-h, --help | Print help and exit |