# compiler: Allow configuring UBSan mode at the module level\. · gitcafe/zig

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

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

Visibility: public

Requested revision: b3537d0f4adeff824348a4918b495976ae230731

Requested commit: b3537d0f4adeff824348a4918b495976ae230731

Commit: b3537d0f4adeff824348a4918b495976ae230731

Tree: 4635a2febd416352452e5b909afad138db43b601

Author: Alex Rønne Petersen

Committer: Alex Rønne Petersen

## Message

```
compiler: Allow configuring UBSan mode at the module level.

* Accept -fsanitize-c=trap|full in addition to the existing form.
* Accept -f(no-)sanitize-trap=undefined in zig cc.
* Change type of std.Build.Module.sanitize_c to std.zig.SanitizeC.
* Add some missing Compilation.Config fields to the cache.

Closes #23216.

```

## Parents

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

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