From b3d162d6bfe82d84d55edd58016347a420732fe2 Mon Sep 17 00:00:00 2001 From: Andrew Kelley Date: Wed, 18 Feb 2026 14:09:55 -0800 Subject: [PATCH] build maker: rename files to match type --- lib/compiler/{maker.zig => Maker.zig} | 10 +++++----- lib/compiler/{maker => Maker}/Fuzz.zig | 6 +++--- lib/compiler/{maker => Maker}/Graph.zig | 0 lib/compiler/{maker => Maker}/Step.zig | 0 lib/compiler/{maker => Maker}/Step/Compile.zig | 0 lib/compiler/{maker => Maker}/Step/InstallArtifact.zig | 0 lib/compiler/{maker => Maker}/Step/Run.zig | 0 lib/compiler/{maker => Maker}/Step/WriteFile.zig | 0 lib/compiler/{maker => Maker}/Watch.zig | 0 lib/compiler/{maker => Maker}/Watch/FsEvents.zig | 0 lib/compiler/{maker => Maker}/WebServer.zig | 0 src/main.zig | 2 +- 12 files changed, 9 insertions(+), 9 deletions(-) rename lib/compiler/{maker.zig => Maker.zig} (99%) rename lib/compiler/{maker => Maker}/Fuzz.zig (99%) rename lib/compiler/{maker => Maker}/Graph.zig (100%) rename lib/compiler/{maker => Maker}/Step.zig (100%) rename lib/compiler/{maker => Maker}/Step/Compile.zig (100%) rename lib/compiler/{maker => Maker}/Step/InstallArtifact.zig (100%) rename lib/compiler/{maker => Maker}/Step/Run.zig (100%) rename lib/compiler/{maker => Maker}/Step/WriteFile.zig (100%) rename lib/compiler/{maker => Maker}/Watch.zig (100%) rename lib/compiler/{maker => Maker}/Watch/FsEvents.zig (100%) rename lib/compiler/{maker => Maker}/WebServer.zig (100%) diff --git a/lib/compiler/maker.zig b/lib/compiler/Maker.zig similarity index 99% rename from lib/compiler/maker.zig rename to lib/compiler/Maker.zig index 78b472530f..15c2799185 100644 --- a/lib/compiler/maker.zig +++ b/lib/compiler/Maker.zig @@ -16,11 +16,11 @@ const log = std.log; const mem = std.mem; const process = std.process; -const Fuzz = @import("maker/Fuzz.zig"); -const Graph = @import("maker/Graph.zig"); -const Step = @import("maker/Step.zig"); -const Watch = @import("maker/Watch.zig"); -const WebServer = @import("maker/WebServer.zig"); +const Fuzz = @import("Maker/Fuzz.zig"); +const Graph = @import("Maker/Graph.zig"); +const Step = @import("Maker/Step.zig"); +const Watch = @import("Maker/Watch.zig"); +const WebServer = @import("Maker/WebServer.zig"); pub const std_options: std.Options = .{ .side_channels_mitigations = .none, diff --git a/lib/compiler/maker/Fuzz.zig b/lib/compiler/Maker/Fuzz.zig similarity index 99% rename from lib/compiler/maker/Fuzz.zig rename to lib/compiler/Maker/Fuzz.zig index 433439f2ce..d3066d24af 100644 --- a/lib/compiler/maker/Fuzz.zig +++ b/lib/compiler/Maker/Fuzz.zig @@ -12,7 +12,7 @@ const assert = std.debug.assert; const fatal = std.process.fatal; const log = std.log; -const maker = @import("../maker.zig"); +const Maker = @import("../Maker.zig"); const WebServer = @import("WebServer.zig"); gpa: Allocator, @@ -179,7 +179,7 @@ fn rebuildTestsWorkerRunFallible(run: Configuration.Step.Index, gpa: Allocator, var buf: [256]u8 = undefined; const stderr = try io.lockStderr(&buf, graph.stderr_mode); defer io.unlockStderr(); - maker.printErrorMessages(gpa, &compile.step, .{}, stderr.terminal(), .verbose, .indent) catch {}; + Maker.printErrorMessages(gpa, &compile.step, .{}, stderr.terminal(), .verbose, .indent) catch {}; } const rebuilt_bin_path = result catch |err| switch (err) { @@ -202,7 +202,7 @@ fn fuzzWorkerRun(fuzz: *Fuzz, run: Configuration.Step.Index) void { error.Canceled => return, }; defer io.unlockStderr(); - maker.printErrorMessages(gpa, &run.step, .{}, stderr.terminal(), .verbose, .indent) catch {}; + Maker.printErrorMessages(gpa, &run.step, .{}, stderr.terminal(), .verbose, .indent) catch {}; return; }, else => { diff --git a/lib/compiler/maker/Graph.zig b/lib/compiler/Maker/Graph.zig similarity index 100% rename from lib/compiler/maker/Graph.zig rename to lib/compiler/Maker/Graph.zig diff --git a/lib/compiler/maker/Step.zig b/lib/compiler/Maker/Step.zig similarity index 100% rename from lib/compiler/maker/Step.zig rename to lib/compiler/Maker/Step.zig diff --git a/lib/compiler/maker/Step/Compile.zig b/lib/compiler/Maker/Step/Compile.zig similarity index 100% rename from lib/compiler/maker/Step/Compile.zig rename to lib/compiler/Maker/Step/Compile.zig diff --git a/lib/compiler/maker/Step/InstallArtifact.zig b/lib/compiler/Maker/Step/InstallArtifact.zig similarity index 100% rename from lib/compiler/maker/Step/InstallArtifact.zig rename to lib/compiler/Maker/Step/InstallArtifact.zig diff --git a/lib/compiler/maker/Step/Run.zig b/lib/compiler/Maker/Step/Run.zig similarity index 100% rename from lib/compiler/maker/Step/Run.zig rename to lib/compiler/Maker/Step/Run.zig diff --git a/lib/compiler/maker/Step/WriteFile.zig b/lib/compiler/Maker/Step/WriteFile.zig similarity index 100% rename from lib/compiler/maker/Step/WriteFile.zig rename to lib/compiler/Maker/Step/WriteFile.zig diff --git a/lib/compiler/maker/Watch.zig b/lib/compiler/Maker/Watch.zig similarity index 100% rename from lib/compiler/maker/Watch.zig rename to lib/compiler/Maker/Watch.zig diff --git a/lib/compiler/maker/Watch/FsEvents.zig b/lib/compiler/Maker/Watch/FsEvents.zig similarity index 100% rename from lib/compiler/maker/Watch/FsEvents.zig rename to lib/compiler/Maker/Watch/FsEvents.zig diff --git a/lib/compiler/maker/WebServer.zig b/lib/compiler/Maker/WebServer.zig similarity index 100% rename from lib/compiler/maker/WebServer.zig rename to lib/compiler/Maker/WebServer.zig diff --git a/src/main.zig b/src/main.zig index a24acdc14e..1366deef2b 100644 --- a/src/main.zig +++ b/src/main.zig @@ -5799,7 +5799,7 @@ fn compileMakeRunner(gpa: Allocator, arena: Allocator, io: Io, options: MakeRunn const main_mod_paths: Package.Module.CreateOptions.Paths = .{ .root = try .fromRoot(arena, options.dirs, .zig_lib, "compiler"), - .root_src_path = "maker.zig", + .root_src_path = "Maker.zig", }; const config = try Compilation.Config.resolve(.{