commit 5644d68f147159d3be14378d6cce06e1fa200dc3 (tree)
parent 43209551b73b670cbb1505fd5fc45980d763aa9c
Author: Andrew Kelley <andrew@ziglang.org>
Date: Sun, 17 May 2026 14:56:52 -0700
more colorful wip panics
Diffstat:
4 files changed, 14 insertions(+), 14 deletions(-)
diff --git a/lib/compiler/Maker.zig b/lib/compiler/Maker.zig
@@ -1781,7 +1781,7 @@ pub fn relativePath(maker: *const Maker, relative: Configuration.LazyPath.Relati
const graph = maker.graph;
const c = &maker.scanned_config.configuration;
const sub_path = relative.sub_path.slice(c);
- if (relative.flags.base == .zig_exe and sub_path.len != 0) @panic("TODO");
+ if (relative.flags.base == .zig_exe and sub_path.len != 0) @panic("TODO relativePath zig_exe");
return switch (relative.flags.base) {
.cwd => .{
.root_dir = .cwd(),
diff --git a/lib/compiler/Maker/Fuzz.zig b/lib/compiler/Maker/Fuzz.zig
@@ -93,7 +93,7 @@ pub fn init(
defer rebuild_group.cancel(io);
for (all_steps) |step| {
- if (true) @panic("TODO");
+ if (true) @panic("TODO update the fuzzer");
const run = step.cast(std.Build.Step.Run) orelse continue;
if (run.producer == null) continue;
if (run.fuzz_tests.items.len == 0) continue;
@@ -110,7 +110,7 @@ pub fn init(
errdefer gpa.free(run_steps);
for (run_steps) |run_step_index| {
- if (true) @panic("TODO");
+ if (true) @panic("TODO update the fuzzer");
assert(run_step_index.fuzz_tests.items.len > 0);
if (run_step_index.rebuilt_executable == null)
fatal("one or more unit tests failed to be rebuilt in fuzz mode", .{});
@@ -144,7 +144,7 @@ pub fn start(fuzz: *Fuzz) void {
fatal("unable to spawn coverage task: {t}", .{err});
}
- if (true) @panic("TODO");
+ if (true) @panic("TODO update the fuzzer");
for (fuzz.run_steps) |run| {
assert(run.rebuilt_executable != null);
@@ -221,7 +221,7 @@ fn fuzzWorkerRun(fuzz: *Fuzz, run: Configuration.Step.Index) void {
}
pub fn serveSourcesTar(fuzz: *Fuzz, req: *std.http.Server.Request) !void {
- if (true) @panic("TODO");
+ if (true) @panic("TODO update the fuzzer");
assert(fuzz.mode == .forever);
const gpa = fuzz.maker.gpa;
@@ -373,7 +373,7 @@ fn coverageRunCancelable(fuzz: *Fuzz) Io.Cancelable!void {
}
}
fn prepareTables(fuzz: *Fuzz, run_step_index: Configuration.Step.Index, coverage_id: u64) error{ OutOfMemory, AlreadyReported, Canceled }!void {
- if (true) @panic("TODO");
+ if (true) @panic("TODO update the fuzzer");
assert(fuzz.mode == .forever);
const ws = fuzz.mode.forever.ws;
const maker = fuzz.maker;
@@ -538,7 +538,7 @@ fn addEntryPoint(fuzz: *Fuzz, coverage_id: u64, addr: u64) error{ AlreadyReporte
}
pub fn waitAndPrintReport(fuzz: *Fuzz) Io.Cancelable!void {
- if (true) @panic("TODO");
+ if (true) @panic("TODO update the fuzzer");
assert(fuzz.mode == .limit);
const maker = fuzz.maker;
const graph = maker.graph;
diff --git a/lib/compiler/Maker/Step/Compile.zig b/lib/compiler/Maker/Step/Compile.zig
@@ -1037,7 +1037,7 @@ const PkgConfigResult = struct {
/// Run pkg-config for the given library name and parse the output, returning the arguments
/// that should be passed to zig to link the given library.
fn runPkgConfig(compile: *const Compile, maker: *const Maker, lib_name: []const u8) !PkgConfigResult {
- if (true) @panic("TODO");
+ if (true) @panic("TODO runPkgConfig");
const graph = maker.graph;
const wl_rpath_prefix = "-Wl,-rpath,";
@@ -1149,7 +1149,7 @@ fn runPkgConfig(compile: *const Compile, maker: *const Maker, lib_name: []const
}
fn checkCompileErrors(compile: *Compile, maker: *Maker) !void {
- if (true) @panic("TODO");
+ if (true) @panic("TODO checkCompileErrors");
// Clear this field so that it does not get printed by the build runner.
const actual_eb = compile.step.result_error_bundle;
compile.step.result_error_bundle = .empty;
@@ -1452,7 +1452,7 @@ fn appendModuleFlags(
if (target.query.get(conf)) |query| {
try zig_args.ensureUnusedCapacity(gpa, 6);
- if (true) @panic("TODO");
+ if (true) @panic("TODO appendModuleFlags");
zig_args.appendAssumeCapacity("-target");
zig_args.appendAssumeCapacity(try query.zigTriple(arena));
@@ -1535,12 +1535,12 @@ fn appendIncludeDirFlags(
},
.config_header_step => |ch| {
zig_args.appendAssumeCapacity("-I");
- if (true) @panic("TODO");
+ if (true) @panic("TODO appendIncludeDirFlags");
ch.getOutputDir();
},
.other_step => |comp| {
zig_args.appendAssumeCapacity("-I");
- if (true) @panic("TODO");
+ if (true) @panic("TODO appendIncludeDirFlags");
comp.installed_headers_include_tree.?.getDirectory();
},
.embed_path => |lazy_path| {
diff --git a/lib/compiler/Maker/Step/Run.zig b/lib/compiler/Maker/Step/Run.zig
@@ -2296,12 +2296,12 @@ fn convertPathArg(run_index: Configuration.Step.Index, maker: *Maker, path: Path
}
fn addPathForDynLibs(artifact: Configuration.Step.Index) void {
- if (true) @panic("TODO");
+ if (true) @panic("TODO addPathForDynLibs");
for (artifact.getCompileDependencies(true)) |compile| {
if (compile.root_module.resolved_target.?.result.os.tag == .windows and
compile.isDynamicLibrary())
{
- @panic("TODO");
+ @panic("TODO addPathForDynLibs");
//addPathDir(run, Dir.path.dirname(compile.getEmittedBin().getPath2(b, step)).?);
}
}