| ... | ... | @@ -1255,6 +1255,8 @@ pub const LibExeObjStep = struct { |
| 1255 | 1255 | libc_file: ?[]const u8 = null, |
| 1256 | 1256 | target_glibc: ?Version = null, |
| 1257 | 1257 | |
| 1258 | valgrind_support: ?bool = null, |
| 1259 | |
| 1258 | 1260 | const LinkObject = union(enum) { |
| 1259 | 1261 | StaticPath: []const u8, |
| 1260 | 1262 | OtherStep: *LibExeObjStep, |
| ... | ... | @@ -1882,6 +1884,14 @@ pub const LibExeObjStep = struct { |
| 1882 | 1884 | try zig_args.append("--system-linker-hack"); |
| 1883 | 1885 | } |
| 1884 | 1886 | |
| 1887 | if (self.valgrind_support) |valgrind_support| { |
| 1888 | if (valgrind_support) { |
| 1889 | try zig_args.append("--enable-valgrind"); |
| 1890 | } else { |
| 1891 | try zig_args.append("--disable-valgrind"); |
| 1892 | } |
| 1893 | } |
| 1894 | |
| 1885 | 1895 | if (self.override_std_dir) |dir| { |
| 1886 | 1896 | try zig_args.append("--override-std-dir"); |
| 1887 | 1897 | try zig_args.append(builder.pathFromRoot(dir)); |