1
0
mirror of https://github.com/google/cpu_features.git synced 2025-07-01 21:31:15 +02:00

Update badges generator.

This commit is contained in:
Corentin Le Molgat
2023-08-30 08:44:40 +02:00
committed by Mizux
parent c57960579b
commit 60aa4e343a
2 changed files with 7 additions and 2 deletions

View File

@ -1,3 +1,6 @@
// usage:
// 1. copy paste the whole code to https://run.dlang.io/ then click `run`
// 2. `docker run --rm -it -v $(pwd):/src dlanguage/dmd dmd -run generate_badges.d`
import std.algorithm : each, map, cartesianProduct, filter, joiner, sort, uniq;
import std.array : array;
import std.conv : to;
@ -67,7 +70,7 @@ const:
case BuildSystem.CMake:
return os == Os.Linux || cpu == Cpu.amd64;
case BuildSystem.Bazel:
return os == Os.Linux && cpu == Cpu.amd64;
return os == Os.Linux && (cpu == Cpu.amd64 || cpu == Cpu.AArch64);
}
}