Support compiling under ARM64 environment using gcc #349
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
在Ubuntu:20.04 aarch64环境下使用cmake .. && make编译出错(gcc版本9.3.0),原因是sse4是gcc x86选项,在arm64上的gcc并不支持。所以在CMakeLists.txt加上cpu类型检查,在不是intel cpu的情况下不加sse4选项。
错误信息:
c++: error: unrecognized command line option '-msse4'
c++: error: unrecognized command line option '-msse4.2'