Commit 4801c9d 1 parent dd92367 commit 4801c9d Copy full SHA for 4801c9d
File tree 1 file changed +6
-1
lines changed
1 file changed +6
-1
lines changed Original file line number Diff line number Diff line change @@ -60,7 +60,7 @@ if(MSVC)
60
60
# set warning level 3 for system headers
61
61
list (APPEND V8PP_COMPILE_OPTIONS /experimental:external /external:anglebrackets /external:W3)
62
62
else ()
63
- set (V8PP_COMPILE_OPTIONS -fno-rtti -fexceptions -Wall -Wextra -Wpedantic)
63
+ set (V8PP_COMPILE_OPTIONS -frtti -fexceptions -Wall -Wextra -Wpedantic)
64
64
endif ()
65
65
66
66
if (V8PP_HEADER_ONLY)
@@ -84,6 +84,11 @@ else()
84
84
if (BUILD_SHARED_LIBS )
85
85
target_link_libraries (v8pp PUBLIC ${CMAKE_DL_LIBS} )
86
86
endif ()
87
+ if (APPLE )
88
+ # turn off RTTI to avoid generating typeinfo for v8::ArrayBuffer::Allocator
89
+ # used in context.cpp
90
+ set_source_files_properties (context.cpp PROPERTIES COMPILE_FLAGS -fno-rtti)
91
+ endif ()
87
92
endif ()
88
93
89
94
#source_group(TREE ${CMAKE_CURRENT_SOURCE_DIR} FILES ${V8PP_HEADERS} ${V8PP_SOURCES})
You can’t perform that action at this time.
0 commit comments