| ... | ... | @@ -2217,18 +2217,19 @@ fn buildOutputType( |
| 2217 | 2217 | mod_opts.strip = false; |
| 2218 | 2218 | create_module.opts.debug_format = .{ .dwarf = .@"64" }; |
| 2219 | 2219 | }, |
| 2220 | | .sanitize => { |
| 2220 | .sanitize, .no_sanitize => |t| { |
| 2221 | const enable = t == .sanitize; |
| 2221 | 2222 | var san_it = std.mem.splitScalar(u8, it.only_arg, ','); |
| 2222 | 2223 | var recognized_any = false; |
| 2223 | 2224 | while (san_it.next()) |sub_arg| { |
| 2224 | 2225 | if (mem.eql(u8, sub_arg, "undefined")) { |
| 2225 | | mod_opts.sanitize_c = true; |
| 2226 | mod_opts.sanitize_c = enable; |
| 2226 | 2227 | recognized_any = true; |
| 2227 | 2228 | } else if (mem.eql(u8, sub_arg, "thread")) { |
| 2228 | | mod_opts.sanitize_thread = true; |
| 2229 | mod_opts.sanitize_thread = enable; |
| 2229 | 2230 | recognized_any = true; |
| 2230 | 2231 | } else if (mem.eql(u8, sub_arg, "fuzzer") or mem.eql(u8, sub_arg, "fuzzer-no-link")) { |
| 2231 | | mod_opts.fuzz = true; |
| 2232 | mod_opts.fuzz = enable; |
| 2232 | 2233 | recognized_any = true; |
| 2233 | 2234 | } |
| 2234 | 2235 | } |
| ... | ... | @@ -5904,6 +5905,7 @@ pub const ClangArgIterator = struct { |
| 5904 | 5905 | gdwarf32, |
| 5905 | 5906 | gdwarf64, |
| 5906 | 5907 | sanitize, |
| 5908 | no_sanitize, |
| 5907 | 5909 | linker_script, |
| 5908 | 5910 | dry_run, |
| 5909 | 5911 | verbose, |