diff options
| author | Andrew Kelley <andrew@ziglang.org> | 2025-02-23 19:20:38 -0800 |
|---|---|---|
| committer | Andrew Kelley <andrew@ziglang.org> | 2025-02-26 11:42:03 -0800 |
| commit | a57b0a0f2fe5a3a0af740495c60d4f3d0b6abfec (patch) | |
| tree | 55f195dc055261860fd43c27f6c38d966d8e75b6 /src/codegen/spirv/Module.zig | |
| parent | e03bc7ac78820b7763d6ecd21cfa19653535f8d0 (diff) | |
| download | zig-a57b0a0f2fe5a3a0af740495c60d4f3d0b6abfec.tar.gz zig-a57b0a0f2fe5a3a0af740495c60d4f3d0b6abfec.zip | |
fix generated hash of by-path dependencies
This branch regressed from master by switching to binary rather than hex
digest, allowing null bytes to end up in identifiers in the zig file.
This commit fixes it by changing the "hash" to be literally equal to the
sub_path (with a prefix '/' to indicate "global") if it can fit. If it
is too long then it is actually hashed, and that value used instead.
Diffstat (limited to 'src/codegen/spirv/Module.zig')
0 files changed, 0 insertions, 0 deletions
