# zig build: change "\-Drelease" to "\-Doptimize" · gitcafe/zig

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

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

Visibility: public

Requested revision: 7abc3738a2f0e024bee12e2046054a62fb8aa3e0

Requested commit: 7abc3738a2f0e024bee12e2046054a62fb8aa3e0

Commit: 7abc3738a2f0e024bee12e2046054a62fb8aa3e0

Tree: 9a8af11e11e1ba2d31b56239faa23111c07fe171

Author: Motiejus Jakštys

Committer: Motiejus Jakštys

## Message

```
zig build: change "-Drelease" to "-Doptimize"

I find myself quite often creating ReleaseSafe builds and putting them
to production for certain experiments:
- Debug info are for stack traces. An ongoing example where those would
  help is #14815.
- Safety checks would have saved a couple of mine and @kubkon's hours in
  #15098.

This is a breaking change for scripts that make Zig releases -- I will
submit another PR to zig-bootstrap and release-cutter after this is
merged.

```

## Parents

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

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