[GTK][CMake] Build with -fno-rtti
authorzandobersek@gmail.com <zandobersek@gmail.com@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Sun, 16 Mar 2014 20:13:24 +0000 (20:13 +0000)
committerzandobersek@gmail.com <zandobersek@gmail.com@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Sun, 16 Mar 2014 20:13:24 +0000 (20:13 +0000)
commita77d26cef9b29741d86b1f3d94be4c81611e1606
treeaefd141c8d725339081085318f692f87ebb8a1b1
parent633a393b9b7a084f96dd2ef59ad008adf23576e0
[GTK][CMake] Build with -fno-rtti
https://bugs.webkit.org/show_bug.cgi?id=130261

Reviewed by Martin Robinson.

.:

* Source/cmake/OptionsCommon.cmake: List the -fno-exceptions, -fno-strict-aliasing
and -fno-rtti options in the global CMAKE_C_FLAGS and CMAKE_CXX_FLAGS (-fno-rtti
is only listed in the latter). Replace -std=gnu++0x with the official -std=c++11 option.
* Source/cmake/WebKitHelpers.cmake: Stop -fno-exceptions and -fno-strict-aliasing
from being set through the WEBKIT_SET_EXTRA_COMPILER_FLAGS macro, they are now listed
in CMAKE_C_FLAGS and CMAKE_CXX_FLAGS.
* Source/cmake/gtest/CMakeLists.txt: Build GTest code with GTEST_HAS_RTTI macro defined to 0.

Tools:

* TestWebKitAPI/CMakeLists.txt: Build TestWebKitAPI with GTEST_HAS_RTTI macro
defined to 0 to prevent typeid use in included GTest headers.

git-svn-id: https://svn.webkit.org/repository/webkit/trunk@165709 268f45cc-cd09-0410-ab3c-d52691b4dbfc
ChangeLog
Source/cmake/OptionsCommon.cmake
Source/cmake/WebKitHelpers.cmake
Source/cmake/gtest/CMakeLists.txt
Tools/ChangeLog
Tools/TestWebKitAPI/CMakeLists.txt