Allow the compiler with slightly older forms of the compiler which only have default_hasher and not default_hasher_fixed

This commit is contained in:
gingerBill committed 2026-10-04 19:36:19 +01:00
1 parent 0eee2664d8
commit e774d7954c
3 files changed
+6 -2

No files matched your search

+4
View File
@@ -1035,6 +1035,10 @@ gb_internal void try_to_add_package_dependency(CheckerContext *c, char const *pa
add_dependency(c->info, c->decl, e);
}
gb_internal char const *runtime_default_hasher_fixed_name(CheckerInfo *info) {
Entity *e = scope_lookup_current(info->runtime_package->scope, string_interner_insert(str_lit("default_hasher_fixed")));
return e != nullptr ? "default_hasher_fixed" : "default_hasher";
}
gb_internal void add_declaration_dependency(CheckerContext *c, Entity *e) {
if (e == nullptr) {