diff options
| author | xackus <14938807+xackus@users.noreply.github.com> | 2020-04-11 21:06:56 +0200 |
|---|---|---|
| committer | Andrew Kelley <andrew@ziglang.org> | 2020-04-11 20:40:34 -0400 |
| commit | dbc00e24247da16ac584bb9e92b5ccf04647c3b9 (patch) | |
| tree | a73219b06cb0ead18b93289975257f2f498f5dd4 /build.zig | |
| parent | 3c34c313cf999238753b34f01b0437a552fb3be0 (diff) | |
| download | zig-dbc00e24247da16ac584bb9e92b5ccf04647c3b9.tar.gz zig-dbc00e24247da16ac584bb9e92b5ccf04647c3b9.zip | |
ArrayList: remove old (before span) API
Diffstat (limited to 'build.zig')
| -rw-r--r-- | build.zig | 8 |
1 files changed, 4 insertions, 4 deletions
@@ -136,14 +136,14 @@ pub fn build(b: *Builder) !void { } fn dependOnLib(b: *Builder, lib_exe_obj: var, dep: LibraryDep) void { - for (dep.libdirs.toSliceConst()) |lib_dir| { + for (dep.libdirs.items) |lib_dir| { lib_exe_obj.addLibPath(lib_dir); } const lib_dir = fs.path.join( b.allocator, &[_][]const u8{ dep.prefix, "lib" }, ) catch unreachable; - for (dep.system_libs.toSliceConst()) |lib| { + for (dep.system_libs.items) |lib| { const static_bare_name = if (mem.eql(u8, lib, "curses")) @as([]const u8, "libncurses.a") else @@ -159,10 +159,10 @@ fn dependOnLib(b: *Builder, lib_exe_obj: var, dep: LibraryDep) void { lib_exe_obj.linkSystemLibrary(lib); } } - for (dep.libs.toSliceConst()) |lib| { + for (dep.libs.items) |lib| { lib_exe_obj.addObjectFile(lib); } - for (dep.includes.toSliceConst()) |include_path| { + for (dep.includes.items) |include_path| { lib_exe_obj.addIncludeDir(include_path); } } |
