diff options
| author | mlugg <mlugg@mlugg.co.uk> | 2023-08-16 21:28:50 +0100 |
|---|---|---|
| committer | Andrew Kelley <andrew@ziglang.org> | 2023-08-16 18:05:18 -0700 |
| commit | 000aa30086eb4b470d2b567ce377f0e4a9d9a516 (patch) | |
| tree | 19c17d4177f36f460a661f96efa0d04ea629b117 /src/Module.zig | |
| parent | 01836c7bbe90cfb7847ab9803cb976515160c533 (diff) | |
| download | zig-000aa30086eb4b470d2b567ce377f0e4a9d9a516.tar.gz zig-000aa30086eb4b470d2b567ce377f0e4a9d9a516.zip | |
std.Build: check for native CPU when serializing CrossTarget
When using `std.Build.dependency` with target options, dependencies
would sometimes get targets which are equivalent but have distinct
names, e.g. `native` vs `native-native`. This is a somewhat broad issue,
and it's unclear how to fix it more generally - perhaps we should
special-case CrossTarget in options passing, or maybe targets should
have a canonical name which we guarantee to use everywhere aside from
raw user input.
However, this commit fixes the most egregious issue, which was an active
blocker to using the package manager for some users. This was caused by
the CPU changing from `native` to a specific descriptor (e.g.
`skylake+sgx`), which then changed the behavior of `zigTriple`.
Resolves: #16856
Diffstat (limited to 'src/Module.zig')
0 files changed, 0 insertions, 0 deletions
