-p, --prefix <path> | Override default install prefix |
--prefix-lib-dir <path> | Override default library directory path |
--prefix-exe-dir <path> | Override default executable directory path |
--prefix-include-dir <path> | Override default include directory path |
--sysroot <path> | Set the system root directory (usually /) |
--search-prefix <path> | Add a path to look for binaries, libraries, headers |
--libc <path> | Provide a file which specifies libc paths |
-fdarling | Integration with system-installed Darling to execute macOS programs on Linux hosts |
-fno-fdarling | No integration with system-installed Darling to execute macOS programs on Linux hosts |
-fqemu | Integration with system-installed QEMU to execute foreign-architecture programs on Linux host |
-fno-qemu | No integration with system-installed QEMU to execute foreign-architecture programs on Linux host |
--glibc-runtimes <path> | Enhances QEMU integration by providing glibc built for multiple foreign architectures |
-frosetta | Rely on Rosetta to execute x86_64 programs on ARM64 macOS hosts |
-fno-rosetta | Don't rely on Rosetta to execute x86_64 programs on ARM64 macOS hosts |
-fwasmtime | Integration with system-installed wasmtime to execute WASI binaries |
-fno-wasmtime | No integration with system-installed wasmtime to execute WASI binaries |
-fwine | Integration with system-installed Wine to execute Windows programs on Linux hosts |
-fno-wine | No integration with system-installed Wine to execute Windows programs on Linux hosts |
-h, --help | Print help and exit |
--verbose | Print commands before executing them |
--color <arg> | Enable or disable colored message |
--prominent-compile-errors | Output compile errors formatted for a human to read |
-Dtarget | The CPU architecture, OS, and ABI to build for |
-Dcpu | Target CPU features to add or subtract |
-Drelease-safe <arg> | Optimizations on and safety on |
-Drelease-fast <arg> | Optimizations on and safety off |
-Drelease-small <arg> | Size optimizations on and safety off |
-fstage1 | Force using bootstrap compiler as the codegen backend |
-fno-stage1 | Prevent using bootstrap compiler as the codegen backend |
-freference-trace | How many lines of reference trace should be shown per compile error |
-fno-reference-trace | Disable reference trace |
--build-file <arg> | Override path to build.zig |
--cache-dir <arg> | Override path to local Zig cache directory |
--global-cache-dir <arg> | Override path to global Zig cache directory |
--zig-lib-dir <arg> | Override path to Zig lib directory |
--verbose-link | Enable compiler debug output for linking |
--verbose-air | Enable compiler debug output for Zig AIR |
--verbose-llvm-ir | Enable compiler debug output for LLVM IR |
--verbose-cimport | Enable compiler debug output for C imports |
--verbose-cc | Enable compiler debug output for C compilation |
--verbose-llvm-cpu-features | Enable compiler debug output for LLVM CPU features |