Enabled building against LLVM 17

This commit is contained in:
Bartek Kryza
2023-10-13 11:49:59 +02:00
parent 26abb71b4c
commit f339c34dd8
4 changed files with 20 additions and 7 deletions

View File

@@ -132,6 +132,18 @@ if(APPLE OR (LLVM_VERSION_MAJOR GREATER_EQUAL 16))
${CMAKE_CXX_IMPLICIT_INCLUDE_DIRECTORIES})
endif()
#
# Setup custom compile options depending on various compiler
# and environment quirks
#
if(LLVM_VERSION_MAJOR GREATER_EQUAL 17)
set(CUSTOM_COMPILE_OPTIONS "-Wno-class-memaccess")
endif()
if (CMAKE_CXX_COMPILER_ID STREQUAL "Clang")
set(CUSTOM_COMPILE_OPTIONS
"${CUSTOM_COMPILE_OPTIONS} -Wno-unused-private-field")
endif()
#
# Setup threads library
#