View Source mix zig.get (zig_get v0.13.1)
obtains the Zig compiler toolchain
$ mix zig.get [--version VERSION] [--from FROM] [--os OS] [--arch ARCH]
the zigler compiler will be downloaded to ZIG_ARCHIVE_PATH/VERSION
if unspecified, VERSION defaults to the major/minor version of zig.get
if FROM is specified, will use the FROM file instead of getting from the internet.
if unspecified, ZIG_ARCHIVE_PATH defaults to the user cache path given by
:filename.basedir/3
with application name "zigler"
.
OS and ARCH will be detected from the current build system. It's not recommended to change these arguments.
environment variable options
TAR_COMMAND
: path to a tar executable that is equivalent to gnu tar. only useful for non-windows architectures.NO_VERIFY
: disable signature verification of the downloaded file. Not recommended.ZIG_ARCHIVE_PATH
: path to desired directory to achive the zig compiler toolchain.
Summary
Functions
Callback implementation for Mix.Task.run/1
.