diff options
author | 2023-02-23 23:57:19 -0800 | |
---|---|---|
committer | 2023-02-23 23:57:19 -0800 | |
commit | 3f04f8d0a653cf5decef2225c2044742b382718a (patch) | |
tree | 91eb6500834e3157ecb9ab208101aa368a1191c8 /misctools/readlink-realpath.zig | |
parent | b5bdde28ed34070cbb1d34d13f414f4c513ee40d (diff) | |
download | bun-3f04f8d0a653cf5decef2225c2044742b382718a.tar.gz bun-3f04f8d0a653cf5decef2225c2044742b382718a.tar.zst bun-3f04f8d0a653cf5decef2225c2044742b382718a.zip |
Upgrade Zig (#2151)
* fixup
* Upgrade Zig
* Remove bad assertion
* strings
* bump
* mode -> optimize
* optimize
* Linux build
* Update bindgen.zig
Diffstat (limited to 'misctools/readlink-realpath.zig')
-rw-r--r-- | misctools/readlink-realpath.zig | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/misctools/readlink-realpath.zig b/misctools/readlink-realpath.zig index 1e9c7e3d1..d466c8fd3 100644 --- a/misctools/readlink-realpath.zig +++ b/misctools/readlink-realpath.zig @@ -12,7 +12,7 @@ const stringZ = bun.stringZ; const default_allocator = bun.default_allocator; const C = bun.C; -// zig build-exe -Drelease-fast --main-pkg-path ../ ./readlink-getfd.zig +// zig build-exe -Doptimize=ReleaseFast --main-pkg-path ../ ./readlink-getfd.zig pub fn main() anyerror!void { var stdout_ = std.io.getStdOut(); var stderr_ = std.io.getStdErr(); @@ -24,7 +24,7 @@ pub fn main() anyerror!void { var fixed_buffer = std.heap.FixedBufferAllocator.init(&args_buffer); var allocator = fixed_buffer.allocator(); - var args = std.mem.span(try std.process.argsAlloc(allocator)); + var args = std.mem.bytesAsSlice([]u8, try std.process.argsAlloc(allocator)); const to_resolve = args[args.len - 1]; var out_buffer: [bun.MAX_PATH_BYTES]u8 = undefined; |