aboutsummaryrefslogtreecommitdiff
path: root/src/linker.zig
diff options
context:
space:
mode:
authorGravatar Dylan Conway <35280289+dylan-conway@users.noreply.github.com> 2023-06-21 23:38:18 -0700
committerGravatar GitHub <noreply@github.com> 2023-06-21 23:38:18 -0700
commit5fa13625a1ca0ea1a3a1c5bb86d0880dcfac349f (patch)
tree97f669a178e60772038751d690c3e298a63557b2 /src/linker.zig
parentbfb322d618a3f0e9618d311ae69016fe7a08e771 (diff)
downloadbun-5fa13625a1ca0ea1a3a1c5bb86d0880dcfac349f.tar.gz
bun-5fa13625a1ca0ea1a3a1c5bb86d0880dcfac349f.tar.zst
bun-5fa13625a1ca0ea1a3a1c5bb86d0880dcfac349f.zip
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 <jarred@jarredsumner.com> Co-authored-by: Jarred Sumner <709451+Jarred-Sumner@users.noreply.github.com>
Diffstat (limited to 'src/linker.zig')
-rw-r--r--src/linker.zig8
1 files changed, 4 insertions, 4 deletions
diff --git a/src/linker.zig b/src/linker.zig
index 461bcf808..fa1c504d7 100644
--- a/src/linker.zig
+++ b/src/linker.zig
@@ -119,7 +119,7 @@ pub const Linker = struct {
fd: ?FileDescriptorType,
) !string {
if (Bundler.isCacheEnabled) {
- var hashed = std.hash.Wyhash.hash(0, file_path.text);
+ var hashed = bun.hash(file_path.text);
var hashed_result = try this.hashed_filenames.getOrPut(hashed);
if (hashed_result.found_existing) {
return hashed_result.value_ptr.*;
@@ -130,7 +130,7 @@ pub const Linker = struct {
const hash_name = modkey.hashName(file_path.text);
if (Bundler.isCacheEnabled) {
- var hashed = std.hash.Wyhash.hash(0, file_path.text);
+ var hashed = bun.hash(file_path.text);
try this.hashed_filenames.put(hashed, try this.allocator.dupe(u8, hash_name));
}
@@ -569,7 +569,7 @@ pub const Linker = struct {
// But we need to at least tell the printer that this needs to happen.
if (loader != .napi and resolved_import.shouldAssumeCommonJS(import_record.kind) and !is_bun) {
import_record.do_commonjs_transform_in_printer = true;
- import_record.module_id = @truncate(u32, std.hash.Wyhash.hash(0, path.pretty));
+ import_record.module_id = @truncate(u32, bun.hash(path.pretty));
}
} else |err| {
switch (err) {
@@ -1043,7 +1043,7 @@ pub const Linker = struct {
hash_key = path.text[linker.fs.top_level_dir.len..];
}
- return std.hash.Wyhash.hash(0, hash_key);
+ return bun.hash(hash_key);
}
pub fn enqueueResolveResult(linker: *ThisLinker, resolve_result: *const Resolver.Result) !bool {