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:
Michael Dusan
2020-03-11 19:33:12 -04:00
parent c988167377
commit bfebc11d06
6 changed files with 17 additions and 5 deletions

View File

@@ -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;
}