optimisation: allow RTTI under Windows
This makes using some libraries slightly easier / possible (eg, fmtlib)
This commit is contained in:
parent
9bcb80eca6
commit
648e35caff
@ -214,7 +214,10 @@ if (CMAKE_BUILD_TYPE MATCHES Debug)
|
|||||||
endif()
|
endif()
|
||||||
else ()
|
else ()
|
||||||
append_compile_flag(-O2)
|
append_compile_flag(-O2)
|
||||||
append_compile_flag(-fno-rtti)
|
# Some dependencies (eg, fmtlib) unconditionally use `dynamic_cast` so need RTTI enabled.
|
||||||
|
if (NOT WIN32)
|
||||||
|
append_compile_flag(-fno-rtti)
|
||||||
|
endif ()
|
||||||
add_definitions(-DNO_RTTI)
|
add_definitions(-DNO_RTTI)
|
||||||
add_definitions(-DNDEBUG)
|
add_definitions(-DNDEBUG)
|
||||||
endif ()
|
endif ()
|
||||||
|
Loading…
Reference in New Issue
Block a user