diff options
| author | David Rubin <daviru007@icloud.com> | 2023-11-26 04:41:24 -0800 |
|---|---|---|
| committer | Andrew Kelley <andrew@ziglang.org> | 2023-11-26 14:27:39 -0500 |
| commit | 069a079ddc2ae07cfe1998a364402624f07ce960 (patch) | |
| tree | 8a96498d057f8156c4ce26e49f943b3f4137f2c1 /lib/std/Build/Step.zig | |
| parent | 2549de80b226cddd0664ce4ad8c40887101f302b (diff) | |
| download | zig-069a079ddc2ae07cfe1998a364402624f07ce960.tar.gz zig-069a079ddc2ae07cfe1998a364402624f07ce960.zip | |
complete todo
Diffstat (limited to 'lib/std/Build/Step.zig')
| -rw-r--r-- | lib/std/Build/Step.zig | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/lib/std/Build/Step.zig b/lib/std/Build/Step.zig index 872035fb3d..9a06e4b9e5 100644 --- a/lib/std/Build/Step.zig +++ b/lib/std/Build/Step.zig @@ -371,8 +371,7 @@ pub fn evalZigProcess( // TODO: use @ptrCast when the compiler supports it const unaligned_extra = std.mem.bytesAsSlice(u32, extra_bytes); const extra_array = try arena.alloc(u32, unaligned_extra.len); - // TODO: use @memcpy when it supports slices - for (extra_array, unaligned_extra) |*dst, src| dst.* = src; + @memcpy(extra_array, unaligned_extra); s.result_error_bundle = .{ .string_bytes = try arena.dupe(u8, string_bytes), .extra = extra_array, |
