# emit error and crash when trying to use the broken \-femit-h option \(\#30229\) · gitcafe/zig

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

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

Visibility: public

Requested revision: ec13e8eaaafc34193f245e593333f512681f168f

Requested commit: ec13e8eaaafc34193f245e593333f512681f168f

Commit: ec13e8eaaafc34193f245e593333f512681f168f

Tree: db354f6464085b4f04aa97d1fdceee24c57f5c07

Author: Sivecano

Committer: Andrew Kelley

## Message

```
emit error and crash when trying to use the broken -femit-h option (#30229)

I know the real solution would be to fix this.
But this is still way better than unexplained bugs.

I hope this is the correct way to do this.
I've tested it and it seems to work as advertised.
This may not fix it in the build system... but yk, better than nothing.

Reviewed-on: https://codeberg.org/ziglang/zig/pulls/30229
Reviewed-by: Andrew Kelley <andrewrk@noreply.codeberg.org>
Co-authored-by: Sivecano <sivecano@gmail.com>
Co-committed-by: Sivecano <sivecano@gmail.com>

```

## Parents

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

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