We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 0821eff commit 787a118Copy full SHA for 787a118
1 file changed
CMakeLists.txt
@@ -115,9 +115,12 @@ if (USE_CPU_EXTENSIONS)
115
endif()
116
117
if (AWS_ARCH_ARM32)
118
- target_compile_options(${PROJECT_NAME} PRIVATE
119
- -Wno-unknown-pragmas
+ # XXHash impl uses some unrolling pragmas that were not supported until gcc 8.0+ on arm
+ # disable warning for that. it will be slower but will continue working.
120
+ if (CMAKE_C_COMPILER_ID STREQUAL "GNU" AND CMAKE_C_COMPILER_VERSION VERSION_LESS "8.0")
121
+ target_compile_options(${PROJECT_NAME} PRIVATE -Wno-unknown-pragmas
122
)
123
+ endif ()
124
125
126
target_include_directories(${PROJECT_NAME} PUBLIC
0 commit comments