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).

-v

Enables verbose output. If you're debugging zvm, or you're interested to see what zvm is doing, this is a useful option to use.

-vv

Like -v, but enables even more verbosity.

--version

Prints the version and exits.

Clone this wiki locally