# compiler: audit debug mode checks · gitcafe/zig

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

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

Visibility: public

Requested revision: b60fc16b4f6b973ce2207fb28b77606d45961972

Requested commit: b60fc16b4f6b973ce2207fb28b77606d45961972

Commit: b60fc16b4f6b973ce2207fb28b77606d45961972

Tree: eb90eb7d6cfcfa8d90f821b34c4e6d17e7159e1a

Author: Jacob Young

Committer: Andrew Kelley

## Message

```
compiler: audit debug mode checks

 * Introduce `-Ddebug-extensions` for enabling compiler debug helpers
 * Replace safety mode checks with `std.debug.runtime_safety`
 * Replace debugger helper checks with `!builtin.strip_debug_info`

Sometimes, you just have to debug optimized compilers...

```

## Parents

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

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