diff options
| author | Veikka Tuominen <git@vexu.eu> | 2022-09-16 23:49:00 +0300 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2022-09-16 23:49:00 +0300 |
| commit | b2aedb07096fa4ed8766d3aa87e70704cee68265 (patch) | |
| tree | 415ec2d04881991f541477ec0d0c1d96a21d056d /lib/std/build.zig | |
| parent | 8edd7219c0d5cc5799ae26ee8299b4d4114f7aed (diff) | |
| parent | 31daea74d23be813737892a166cc16ade1272a1a (diff) | |
| download | zig-b2aedb07096fa4ed8766d3aa87e70704cee68265.tar.gz zig-b2aedb07096fa4ed8766d3aa87e70704cee68265.zip | |
Merge pull request #12796 from Vexu/referenced-by-v2
stage2: add referenced by trace to compile errors attempt #2 (+ some fixes)
Diffstat (limited to 'lib/std/build.zig')
| -rw-r--r-- | lib/std/build.zig | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/lib/std/build.zig b/lib/std/build.zig index 3858ea66f1..2c141d5401 100644 --- a/lib/std/build.zig +++ b/lib/std/build.zig @@ -45,6 +45,7 @@ pub const Builder = struct { /// The purpose of executing the command is for a human to read compile errors from the terminal prominent_compile_errors: bool, color: enum { auto, on, off } = .auto, + reference_trace: ?u32 = null, use_stage1: ?bool = null, invalid_user_input: bool, zig_exe: []const u8, @@ -2453,6 +2454,10 @@ pub const LibExeObjStep = struct { try zig_args.append(@tagName(builder.color)); } + if (builder.reference_trace) |some| { + try zig_args.append(try std.fmt.allocPrint(builder.allocator, "-freference-trace={d}", .{some})); + } + if (self.use_stage1) |stage1| { if (stage1) { try zig_args.append("-fstage1"); |
