fix zig-cache to treat cpu-features as raw-bytes
- add Stage2Target.cache_hash_len
- add cache_mem(ch, ptr, len)
- update call sites to use { ptr, len }
This commit is contained in:
@@ -251,9 +251,12 @@ Error stage2_target_parse(struct ZigTarget *target, const char *zig_triple, cons
|
||||
target->cache_hash = "\n\n";
|
||||
}
|
||||
|
||||
target->cache_hash_len = strlen(target->cache_hash);
|
||||
|
||||
if (dynamic_linker != nullptr) {
|
||||
target->dynamic_linker = dynamic_linker;
|
||||
}
|
||||
|
||||
return ErrorNone;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user