# windows: MSVC: disable extra dubious Microsoft runtime checks · gitcafe/zig

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

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

Visibility: public

Requested revision: f3940ad858937cc4bb2e1b99828183e070f40bf9

Requested commit: f3940ad858937cc4bb2e1b99828183e070f40bf9

Commit: f3940ad858937cc4bb2e1b99828183e070f40bf9

Tree: 57027c0969a7e78899873f29b19246ff514f8223

Author: Jonathan Marler

Committer: Alex Rønne Petersen

## Message

```
windows: MSVC: disable extra dubious Microsoft runtime checks

Cmake by default adds the `/RTC1` compiler flag for debug builds.
However, this causes C code that conforms to the C standard and has
well-defined behavior to trap. Here I've updated CMAKE to use the more
lenient `/RTCs` by default which removes the uninitialized variable checks
but keeps the stack error checks.


```

## Parents

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

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