zig

fork of https://codeberg.org/ziglang/zig
Log | Files | Refs | README | LICENSE

commit cf2558e97103c0f8412cdf41c4120baa09775086 (tree)
parent f9f894200891c8af6ce3a3ad222cd0bf1ee15587
Author: Ryan Liptak <squeek502@hotmail.com>
Date:   Wed,  7 Aug 2024 08:56:50 -0700

update_cpu_features: Add x86 alias and arm override

Before this commit, the name `v9.5a` was being used for two different features, and one was overwriting the other in the `all_features` array.

`arrowlake_s` is an alias for `arrowlake-s`

Diffstat:
Mtools/update_cpu_features.zig | 5+++++
1 file changed, 5 insertions(+), 0 deletions(-)

diff --git a/tools/update_cpu_features.zig b/tools/update_cpu_features.zig @@ -809,6 +809,10 @@ const llvm_targets = [_]LlvmTarget{ .llvm_name = "v9.4a", .zig_name = "has_v9_4a", }, + .{ + .llvm_name = "v9.5a", + .zig_name = "has_v9_5a", + }, }, // LLVM removed support for v2 and v3 but zig wants to support targeting old hardware .extra_features = &.{ @@ -990,6 +994,7 @@ const llvm_targets = [_]LlvmTarget{ "icelake_client", "icelake_server", "graniterapids_d", + "arrowlake_s", }, }, .{