From 5fa13625a1ca0ea1a3a1c5bb86d0880dcfac349f Mon Sep 17 00:00:00 2001 From: Dylan Conway <35280289+dylan-conway@users.noreply.github.com> Date: Wed, 21 Jun 2023 23:38:18 -0700 Subject: upgrade zig to `v0.11.0-dev.3737+9eb008717` (#3374) * progress * finish `@memset/@memcpy` update * Update build.zig * change `@enumToInt` to `@intFromEnum` and friends * update zig versions * it was 1 * add link to issue * add `compileError` reminder * fix merge * format * upgrade to llvm 16 * Revert "upgrade to llvm 16" This reverts commit cc930ceb1c5b4db9614a7638596948f704544ab8. --------- Co-authored-by: Jarred Sumner Co-authored-by: Jarred Sumner <709451+Jarred-Sumner@users.noreply.github.com> --- src/cli/list-of-yarn-commands.zig | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'src/cli/list-of-yarn-commands.zig') diff --git a/src/cli/list-of-yarn-commands.zig b/src/cli/list-of-yarn-commands.zig index 250541360..4109ed727 100644 --- a/src/cli/list-of-yarn-commands.zig +++ b/src/cli/list-of-yarn-commands.zig @@ -1,4 +1,5 @@ const std = @import("std"); +const bun = @import("root").bun; // yarn v2.3 commands const yarn_v2 = [_][]const u8{ @@ -82,7 +83,7 @@ pub const all_yarn_commands = brk: { var array: [yarn_v2.len + yarn_v1.len]u64 = undefined; var array_i: usize = 0; for (yarn_v2) |yarn| { - const hash = std.hash.Wyhash.hash(0, yarn); + const hash = bun.hash(yarn); @setEvalBranchQuota(9999); if (std.mem.indexOfScalar(u64, array[0..array_i], hash) == null) { @setEvalBranchQuota(9999); @@ -94,7 +95,7 @@ pub const all_yarn_commands = brk: { for (yarn_v1) |yarn| { @setEvalBranchQuota(9999); - const hash = std.hash.Wyhash.hash(0, yarn); + const hash = bun.hash(yarn); if (std.mem.indexOfScalar(u64, array[0..array_i], hash) == null) { @setEvalBranchQuota(9999); -- cgit v1.2.3