baidu / braft

An industrial-grade C++ implementation of RAFT consensus algorithm based on brpc, widely used inside Baidu to build highly-available distributed systems.
Apache License 2.0
3.99k stars 886 forks source link

Add conditional check for -msse4 -msse4.2 compile options in the CMak… #350

Closed githubzilla closed 2 years ago

githubzilla commented 2 years ago

Add conditional check for -msse4 -msse4.2 compile options in the CMakeLists.txt, which are X86 only compile options, for purpose of ARM64 support. Otherwise, gcc will failed on compiling the source.