# CMake: use \-O1 instead of \-O2 for building generated \.c code · gitcafe/zig

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

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

Visibility: public

Requested revision: eef780ebf2299181ec182470aa057d77a065ff13

Requested commit: eef780ebf2299181ec182470aa057d77a065ff13

Commit: eef780ebf2299181ec182470aa057d77a065ff13

Tree: cb3ebf935c8e79cf0dd6af7ce81be06239dbc341

Author: Andrew Kelley

Committer: Andrew Kelley

## Message

```
CMake: use -O1 instead of -O2 for building generated .c code

Idea here is that this is a sweet spot of not wasting time waiting for
optimizations but also getting decent runime performance.

```

## Parents

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

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