Check CPU support before building (#331)

* check cpu support before building

* build for x86-64-v2 on windows and intel macs
This commit is contained in:
patchzyy
2026-10-21 23:47:08 +02:00
committed by GitHub
parent e1157b26a0
commit 6a1fa79bf6
9 changed files with 200 additions and 6 deletions
@@ -74,6 +74,8 @@ internal static class Program
private static async Task InstallAsync(Dictionary<string, string?> flags, IInstallReporter reporter, CancellationToken token)
{
// local-build.sh falls back to an x86-64-v2 build when this CPU lacks v3.
HostCpuRequirement.EnsureSupported(X86CpuProfile.V2);
var retroDir = flags.GetValueOrDefault("retro-dir");
var installsRetro = !string.IsNullOrEmpty(retroDir);
var downloadPayload = flags.ContainsKey("download-retro-wfc-payload");