Skip to content

Commit 628ceb6

Browse files
committed
Disable dynamic_cast optimization introduced in clang17
Signed-off-by: Nijat K <nijat.khanbabayev@gmail.com>
1 parent 5664f56 commit 628ceb6

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

CMakeLists.txt

+5
Original file line numberDiff line numberDiff line change
@@ -204,6 +204,11 @@ else()
204204
-Wno-maybe-uninitialized \
205205
")
206206
endif()
207+
if(CMAKE_CXX_COMPILER_ID MATCHES "Clang")
208+
if(CMAKE_CXX_COMPILER_VERSION VERSION_GREATER_EQUAL 17)
209+
set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -fno-assume-unique-vtables")
210+
endif()
211+
endif()
207212
endif()
208213
endif()
209214

0 commit comments

Comments
 (0)