diff options
| author | Michael Dusan <michael.dusan@gmail.com> | 2020-03-11 19:33:12 -0400 |
|---|---|---|
| committer | Michael Dusan <michael.dusan@gmail.com> | 2020-03-11 19:33:12 -0400 |
| commit | bfebc11d0633e3f4a3fe86d1a9d6f90ffdb1fbb6 (patch) | |
| tree | 60e7ad6b44d7e3e4052edab33fdcb25706022ac7 /src/stage2.cpp | |
| parent | c988167377c92359fed42f12ad32b5f349f9ffb8 (diff) | |
| download | zig-bfebc11d0633e3f4a3fe86d1a9d6f90ffdb1fbb6.tar.gz zig-bfebc11d0633e3f4a3fe86d1a9d6f90ffdb1fbb6.zip | |
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 }
Diffstat (limited to 'src/stage2.cpp')
| -rw-r--r-- | src/stage2.cpp | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/src/stage2.cpp b/src/stage2.cpp index 1f6cb2d6aa..afb7ebb548 100644 --- a/src/stage2.cpp +++ b/src/stage2.cpp @@ -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; } |
