Skip to content

Commit dccc577

Browse files
Add RTTI back (#43)
1 parent bcd2108 commit dccc577

File tree

1 file changed

+1
-5
lines changed

1 file changed

+1
-5
lines changed

src/signalrclient/CMakeLists.txt

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -46,7 +46,7 @@ if(CMAKE_CXX_COMPILER_ID MATCHES "MSVC")
4646
/wd4711 # function 'x' selected for automatic inline expansion
4747
/wd4710 # function not inlined
4848
/experimental:external /external:anglebrackets /external:templates- /external:W0
49-
/GR- # disable run-time type information
49+
# /GR- # do not disable run-time type information, it can be needed by libraries we depend on, like boost
5050
/guard:cf # enable control-flow guard
5151
/EHa # enable C++ EH (w/ SEH exceptions)
5252
)
@@ -58,10 +58,6 @@ else()
5858
target_compile_options(signalrclient PRIVATE -Wall)
5959
endif()
6060

61-
# GCC on OSX has a bug with exceptions and no-rtti that can cause crashes
62-
if(NOT APPLE)
63-
target_compile_options(signalrclient PRIVATE -fno-rtti)
64-
endif()
6561
target_compile_options(signalrclient PRIVATE -Wextra -Wpedantic -Wno-unknown-pragmas)
6662
endif()
6763

0 commit comments

Comments
 (0)