authorgravatar for andrew@ziglang.orgAndrew Kelley <andrew@ziglang.org> 2026-04-19 10:56:24-07:00
committergravatar for andrew@ziglang.orgAndrew Kelley <andrew@ziglang.org> 2026-05-25 18:54:34-07:00
log7c718fc72e23130b3093ccec7d644ee94017f3d6
tree2d6d3be29489ca6f0ba66fb60a851b2e8e194c28
parent088f815031dd3570c9cc179e193cbd545e5bb3a3

fix compilation errors from rebase conflicts


6 files changed, 7 insertions(+), 44 deletions(-)

BRANCH_TODO+2-28
......@@ -13,6 +13,8 @@
1313* refactor with DefaultingEnum
1414* inspect b4ffb402c082605c4b324e88120306fc8fb3cf32 diff and apply changes as needed (merge conflict)
1515* https://codeberg.org/ziglang/zig/issues/31397
16* restore the generated_compiler_rt_dyn_lib hack?
17* run args
1618
1719## Followup Issues
1820* link_eh_frame_hdr should be DefaultingBool
......@@ -21,31 +23,3 @@
2123 - but artifact install steps also add paths for dyn libs on windows
2224
2325
24
25## Unresolved Branch Conflicts
26
27* move max_jobs to maker not configurer
28
29+// hack for stage2_x86_64 + coff
30+generated_compiler_rt_dyn_lib: ?*GeneratedFile,
31
32+ // hack for stage2_x86_64 + coff
33+ if (compile.generated_compiler_rt_dyn_lib) |lp| lp.path = compile.outputPath(output_dir, .compiler_rt_dyn_lib);
34
35 if (install_artifact.compiler_rt_dyn_lib_dir) |compiler_rt_dir| {
36 const full_compiler_rt_path = b.getInstallPath(compiler_rt_dir, install_artifact.emitted_compiler_rt_dyn_lib.?.basename(b, step));
37 const p = try step.installFile(install_artifact.emitted_compiler_rt_dyn_lib.?, full_compiler_rt_path);
38 all_cached = all_cached and p == .fresh;
39 }
40
41
42 .compiler_rt_dyn_lib_dir = switch (options.compiler_rt_dyn_lib_dir) {
43 .disabled => null,
44 .default => if (artifact.producesCompilerRtDynLib()) dest_dir else null,
45 .override => |o| o,
46 },
47
48 if (install_artifact.compiler_rt_dyn_lib_dir != null) install_artifact.emitted_compiler_rt_dyn_lib = artifact.getEmittedCompilerRtDynLib();
49
50
51
lib/compiler/Maker/Graph.zig+3
......@@ -48,6 +48,9 @@ sysroot: ?[]const u8 = null,
4848search_prefixes: std.ArrayList([]const u8) = .empty,
4949build_id: ?std.zig.BuildId = null,
5050error_limit: ?u32 = null,
51/// Steps should use `io` to limit the number of jobs, however in the case of
52/// a single step spawning a fixed number of processes this can be used.
53max_jobs: ?u32 = null,
5154
5255/// Intention of verbose is to print all sub-process command lines to stderr
5356/// before spawning them.
lib/compiler/configurer.zig+1-1
......@@ -952,7 +952,7 @@ fn serialize(b: *std.Build, wc: *Configuration.Wip, writer: *Io.Writer) !void {
952952 .expect_term => |t| expect_term = switch (t) {
953953 .exited => |x| .{ .status = .exited, .value = x },
954954 .signal => |x| .{ .status = .signal, .value = @intFromEnum(x) },
955 .stopped => |x| .{ .status = .stopped, .value = x },
955 .stopped => |x| .{ .status = .stopped, .value = @intFromEnum(x) },
956956 .unknown => |x| .{ .status = .unknown, .value = x },
957957 },
958958 },
lib/std/Build.zig-10
......@@ -32,13 +32,6 @@ allocator: Allocator,
3232user_input_options: UserInputOptionsMap,
3333available_options_map: AvailableOptionsMap,
3434available_options_list: std.array_list.Managed(AvailableOption),
35verbose: bool,
36verbose_link: bool,
37verbose_cc: bool,
38verbose_air: bool,
39verbose_llvm_ir: ?[]const u8,
40verbose_llvm_bc: ?[]const u8,
41verbose_llvm_cpu_features: bool,
4235invalid_user_input: bool,
4336default_step: *Step,
4437top_level_steps: std.StringArrayHashMapUnmanaged(*Step.TopLevel),
......@@ -100,9 +93,6 @@ pub const Graph = struct {
10093 host: ResolvedTarget,
10194 dependency_cache: InitializedDepMap = .empty,
10295 allow_so_scripts: ?bool = null,
103 /// Steps should use `io` to limit the number of jobs, however in the case of
104 /// a single step spawning a fixed number of processes this can be used.
105 max_jobs: ?u32 = null,
10696 time_report: bool = false,
10797 /// Similar to the `Io.Terminal.Mode` returned by `Io.lockStderr`, but also
10898 /// respects the '--color' flag.
lib/std/Build/Cache.zig+1-1
......@@ -195,7 +195,7 @@ pub const HashHelper = struct {
195195 }
196196
197197 pub fn addBytesZ(hh: *HashHelper, bytes: [:0]const u8) void {
198 hh.hasher.update(mem.absorbSentinel(u8, 0, bytes));
198 hh.hasher.update(mem.absorbSentinel(bytes));
199199 }
200200
201201 pub fn addOptionalBytes(hh: *HashHelper, optional_bytes: ?[]const u8) void {
lib/std/Build/Step/InstallArtifact.zig-4
......@@ -17,10 +17,6 @@ emitted_implib: ?LazyPath,
1717pdb_dir: ?InstallDir,
1818emitted_pdb: ?LazyPath,
1919
20// hack for stage2_x86_64 + coff
21compiler_rt_dyn_lib_dir: ?InstallDir,
22emitted_compiler_rt_dyn_lib: ?LazyPath,
23
2420h_dir: ?InstallDir,
2521emitted_h: ?LazyPath,
2622