Skip to content

Commit

Permalink
build: override cpu instructions support for mac
Browse files Browse the repository at this point in the history
  • Loading branch information
variar committed Nov 18, 2024
1 parent b9a5aa4 commit d9f85eb
Showing 1 changed file with 11 additions and 2 deletions.
13 changes: 11 additions & 2 deletions src/utils/src/cpu_info.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -85,7 +85,7 @@ CpuInstructions supportedCpuInstructions()

return cpuInstructions;
}
#else
#elif defined (Q_OS_LINUX)
CpuInstructions supportedCpuInstructions()
{
CpuInstructions cpuInstructions = CpuInstructions::NONE;
Expand Down Expand Up @@ -136,5 +136,14 @@ CpuInstructions supportedCpuInstructions()
}
return cpuInstructions;
}

#else
CpuInstructions supportedCpuInstructions()
{
CpuInstructions cpuInstructions = CpuInstructions::NONE;
cpuInstructions |= CpuInstructions::SSE2;
cpuInstructions |= CpuInstructions::SSSE3;
cpuInstructions |= CpuInstructions::SSE41;
cpuInstructions |= CpuInstructions::POPCNT;
return cpuInstructions;
}
#endif

0 comments on commit d9f85eb

Please sign in to comment.