diff options
| author | Alex Rønne Petersen <alex@alexrp.com> | 2025-04-16 02:44:55 +0200 |
|---|---|---|
| committer | Alex Rønne Petersen <alex@alexrp.com> | 2025-04-26 22:54:34 +0200 |
| commit | b3537d0f4adeff824348a4918b495976ae230731 (patch) | |
| tree | 4635a2febd416352452e5b909afad138db43b601 /tools | |
| parent | 23440fbb99a501fac9cfb6af85c6303732cf0b06 (diff) | |
| download | zig-b3537d0f4adeff824348a4918b495976ae230731.tar.gz zig-b3537d0f4adeff824348a4918b495976ae230731.zip | |
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.
Diffstat (limited to 'tools')
| -rw-r--r-- | tools/update_clang_options.zig | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/tools/update_clang_options.zig b/tools/update_clang_options.zig index ed5acf13ac..3c2ef84952 100644 --- a/tools/update_clang_options.zig +++ b/tools/update_clang_options.zig @@ -289,6 +289,14 @@ const known_options = [_]KnownOpt{ .ident = "no_sanitize", }, .{ + .name = "fsanitize-trap", + .ident = "sanitize_trap", + }, + .{ + .name = "fno-sanitize-trap", + .ident = "no_sanitize_trap", + }, + .{ .name = "T", .ident = "linker_script", }, |
