# build system: implement \-\-release\[=mode\] · gitcafe/zig

[View on GitCafe](https://git.cafe/gitcafe/zig/commit/22537873f4e80fa1caca6b7b8a4b14c8d7284de2)

Repository: [gitcafe/zig](https://git.cafe/gitcafe/zig)

Visibility: public

Requested revision: 22537873f4e80fa1caca6b7b8a4b14c8d7284de2

Requested commit: 22537873f4e80fa1caca6b7b8a4b14c8d7284de2

Commit: 22537873f4e80fa1caca6b7b8a4b14c8d7284de2

Tree: 62c068c73037e1a72142aff67c074b92cf82164f

Author: Andrew Kelley

Committer: Andrew Kelley

## Message

```
build system: implement --release[=mode]

This allows a `zig build` command to specify intention to create a
release build, regardless of what per-project options exist. It also
allows the command to specify a "preferred optimization mode", which is
chosen if the project itself does not choose one (in other words, the
project gets first choice). If neither the build command nor the project
specify a preferred release mode, an error occurs.

```

## Parents

- [f18576afad6b385377ba8fd18be3d05f7dc98c57](https://git.cafe/gitcafe/zig/commit/f18576afad6b385377ba8fd18be3d05f7dc98c57?format=markdown)

[Source at this commit](https://git.cafe/gitcafe/zig/tree/22537873f4e80fa1caca6b7b8a4b14c8d7284de2?format=markdown)
