Skip to content

Commit 9737015

Browse files
authored
Support clang-20 shared library build (#243)
1 parent d2eb3dd commit 9737015

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

cmake/options.cmake

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -188,6 +188,10 @@ endif()
188188
# Fix Clang complaining about the sized delete operator.
189189
if (CMAKE_CXX_COMPILER_ID STREQUAL "Clang" OR CMAKE_CXX_COMPILER_ID STREQUAL "IntelLLVM")
190190
target_compile_options(${SVS_LIB} INTERFACE -fsized-deallocation)
191+
# TODO: remove once eve releases with clang-20 support
192+
if (CMAKE_CXX_COMPILER_VERSION GREATER_EQUAL 20.0)
193+
target_compile_options(svs_compile_options INTERFACE -Wno-deprecated-literal-operator)
194+
endif()
191195
endif()
192196

193197
# Provide better diagnostics for broken templates.

0 commit comments

Comments
 (0)