Enabled building against LLVM 17
This commit is contained in:
@@ -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
|
||||
#
|
||||
|
||||
Reference in New Issue
Block a user