Browse Source

Disabled RTTI and exceptions.

They wouldn't probably be used at all (RTTI is too heavy for dynamic
cast and has too few features to be used for reflection) and they break
C++ rule "you don't pay for what you don't use".
vectorfields
Vladimír Vondruš 14 years ago
parent
commit
eb82cb462a
  1. 2
      src/CMakeLists.txt

2
src/CMakeLists.txt

@ -1,4 +1,4 @@
set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -Wall -pedantic -std=c++0x -fvisibility=hidden")
set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -Wall -pedantic -std=c++0x -fvisibility=hidden -fno-rtti -fno-exceptions")
# If targeting GLES, save it into configuration header
if(TARGET_GLES)

Loading…
Cancel
Save