View Source Zig.Target (zigler v0.11.0)

interfaces for cross-compilation logic.

this function primarily exists to support Nerves deployments, though it is possible to set an arbitrary cross-compilation target using a setting in your use Zig directive. This selects the architecture by checking your "CC" environment variable, which is in turn set by Nerves, then adjusts gcc's machine type to a string which allows zig to select the appropriate cross-compilation settings and libc.

Summary

Types

@type t() :: %Zig.Target{abi: String.t(), arch: String.t(), os: String.t()}

Functions

Link to this function

for_builder(target \\ resolve())

View Source
@spec resolve() :: nil | t()