mirror of
https://github.com/patchzyy/wiicompiled
synced 2026-10-23 06:26:12 -04:00
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:
@@ -64,6 +64,8 @@ internal static class Program
|
||||
|
||||
if (command.Mode is AppMode.SilentInstall or AppMode.RepairProducts)
|
||||
{
|
||||
// CPUs without x86-64-v3 get an x86-64-v2 build.
|
||||
HostCpuRequirement.EnsureSupported(X86CpuProfile.V2);
|
||||
using var cancellationSignal = CancellationSignal.ObserveEnvironment();
|
||||
return command.Mode == AppMode.SilentInstall
|
||||
? ConsoleCommands.Install(command, cancellationSignal.Token).GetAwaiter().GetResult()
|
||||
|
||||
Reference in New Issue
Block a user