| ... | ... | @@ -28,6 +28,7 @@ stack_protector: ?bool, |
| 28 | 28 | stack_check: ?bool, |
| 29 | 29 | sanitize_c: ?bool, |
| 30 | 30 | sanitize_thread: ?bool, |
| 31 | fuzz: ?bool, |
| 31 | 32 | code_model: std.builtin.CodeModel, |
| 32 | 33 | valgrind: ?bool, |
| 33 | 34 | pic: ?bool, |
| ... | ... | @@ -186,6 +187,7 @@ pub const CreateOptions = struct { |
| 186 | 187 | stack_check: ?bool = null, |
| 187 | 188 | sanitize_c: ?bool = null, |
| 188 | 189 | sanitize_thread: ?bool = null, |
| 190 | fuzz: ?bool = null, |
| 189 | 191 | /// Whether to emit machine code that integrates with Valgrind. |
| 190 | 192 | valgrind: ?bool = null, |
| 191 | 193 | /// Position Independent Code |
| ... | ... | @@ -228,6 +230,7 @@ pub fn init(m: *Module, owner: *std.Build, options: CreateOptions, compile: ?*St |
| 228 | 230 | .stack_check = options.stack_check, |
| 229 | 231 | .sanitize_c = options.sanitize_c, |
| 230 | 232 | .sanitize_thread = options.sanitize_thread, |
| 233 | .fuzz = options.fuzz, |
| 231 | 234 | .code_model = options.code_model, |
| 232 | 235 | .valgrind = options.valgrind, |
| 233 | 236 | .pic = options.pic, |
| ... | ... | @@ -642,6 +645,7 @@ pub fn appendZigProcessFlags( |
| 642 | 645 | try addFlag(zig_args, m.error_tracing, "-ferror-tracing", "-fno-error-tracing"); |
| 643 | 646 | try addFlag(zig_args, m.sanitize_c, "-fsanitize-c", "-fno-sanitize-c"); |
| 644 | 647 | try addFlag(zig_args, m.sanitize_thread, "-fsanitize-thread", "-fno-sanitize-thread"); |
| 648 | try addFlag(zig_args, m.fuzz, "-ffuzz", "-fno-fuzz"); |
| 645 | 649 | try addFlag(zig_args, m.valgrind, "-fvalgrind", "-fno-valgrind"); |
| 646 | 650 | try addFlag(zig_args, m.pic, "-fPIC", "-fno-PIC"); |
| 647 | 651 | try addFlag(zig_args, m.red_zone, "-mred-zone", "-mno-red-zone"); |