Skip to content

Global Options

Wesley Koerber edited this page Aug 17, 2024 · 3 revisions

Overview

Option Description
-t, --target Override the default Zig target
-v Enable verbose output
-vv Enable more verbose output
--version Print the version and exit

--target, -t

Override the Zig target.

By default, uname is used to determine the native target of your operating system. This works well on Linux. However, on Windows - specifically using msys, which is used by git-bash - uname reports the name of the subsystem:

$ uname -o
Msys
$ uname -s
MINGW64_NT-10.0-22631

In order to override this, the --target, -t option may be used to tell zvm which Zig build to fetch:

$ zvm --target x86_64-windows

Note that zvm does this automatically now (see #16).

Clone this wiki locally