# `mix zigler_precompiled.build`
[🔗](https://github.com/dannote/zigler_precompiled/blob/v0.1.5/lib/mix/tasks/zigler_precompiled.build.ex#L1)

Builds a single ZiglerPrecompiled NIF artifact for a target triple.

    mix zigler_precompiled.build lib/my_app/native.ex --target aarch64-linux-gnu

Dependencies are compiled for the host before the target-specific Zigler
precompile mode is enabled. This keeps dependency NIFs loadable on the build
runner while only the requested NIF module is cross-compiled.

## Options

  * `--target` - required Zig target triple, such as `aarch64-linux-gnu`
  * `--out` - output directory for the `.tar.gz` artifact, defaults to `artifacts`
  * `--basename` - artifact basename, defaults to the compiled module name
  * `--version` - artifact version, defaults to the current Mix project version

---

*Consult [api-reference.md](api-reference.md) for complete listing*
