diff options
| author | Andrew Kelley <andrew@ziglang.org> | 2025-07-31 21:54:07 -0700 |
|---|---|---|
| committer | Andrew Kelley <andrew@ziglang.org> | 2025-08-11 15:52:49 -0700 |
| commit | 749f10af49022597d873d41df5c600e97e5c4a37 (patch) | |
| tree | cb6da80d28fa284bdeb7b40d26ce8de9ca9b2306 /lib/std/Build/Module.zig | |
| parent | d625158354a02a18e9ae7975a144f30838884d5c (diff) | |
| download | zig-749f10af49022597d873d41df5c600e97e5c4a37.tar.gz zig-749f10af49022597d873d41df5c600e97e5c4a37.zip | |
std.ArrayList: make unmanaged the default
Diffstat (limited to 'lib/std/Build/Module.zig')
| -rw-r--r-- | lib/std/Build/Module.zig | 17 |
1 files changed, 9 insertions, 8 deletions
diff --git a/lib/std/Build/Module.zig b/lib/std/Build/Module.zig index 0fa8a9a623..2719aea1c6 100644 --- a/lib/std/Build/Module.zig +++ b/lib/std/Build/Module.zig @@ -10,12 +10,12 @@ resolved_target: ?std.Build.ResolvedTarget = null, optimize: ?std.builtin.OptimizeMode = null, dwarf_format: ?std.dwarf.Format, -c_macros: std.ArrayListUnmanaged([]const u8), -include_dirs: std.ArrayListUnmanaged(IncludeDir), -lib_paths: std.ArrayListUnmanaged(LazyPath), -rpaths: std.ArrayListUnmanaged(RPath), +c_macros: ArrayList([]const u8), +include_dirs: ArrayList(IncludeDir), +lib_paths: ArrayList(LazyPath), +rpaths: ArrayList(RPath), frameworks: std.StringArrayHashMapUnmanaged(LinkFrameworkOptions), -link_objects: std.ArrayListUnmanaged(LinkObject), +link_objects: ArrayList(LinkObject), strip: ?bool, unwind_tables: ?std.builtin.UnwindTables, @@ -170,7 +170,7 @@ pub const IncludeDir = union(enum) { pub fn appendZigProcessFlags( include_dir: IncludeDir, b: *std.Build, - zig_args: *std.ArrayList([]const u8), + zig_args: *std.array_list.Managed([]const u8), asking_step: ?*Step, ) !void { const flag: []const u8, const lazy_path: LazyPath = switch (include_dir) { @@ -537,7 +537,7 @@ pub fn addCMacro(m: *Module, name: []const u8, value: []const u8) void { pub fn appendZigProcessFlags( m: *Module, - zig_args: *std.ArrayList([]const u8), + zig_args: *std.array_list.Managed([]const u8), asking_step: ?*Step, ) !void { const b = m.owner; @@ -634,7 +634,7 @@ pub fn appendZigProcessFlags( } fn addFlag( - args: *std.ArrayList([]const u8), + args: *std.array_list.Managed([]const u8), opt: ?bool, then_name: []const u8, else_name: []const u8, @@ -706,3 +706,4 @@ const std = @import("std"); const assert = std.debug.assert; const LazyPath = std.Build.LazyPath; const Step = std.Build.Step; +const ArrayList = std.ArrayList; |
