[CMake] RelWithDebInfo builds are super broken at runtime
authorannulen@yandex.ru <annulen@yandex.ru@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Fri, 3 Feb 2017 17:21:21 +0000 (17:21 +0000)
committerannulen@yandex.ru <annulen@yandex.ru@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Fri, 3 Feb 2017 17:21:21 +0000 (17:21 +0000)
https://bugs.webkit.org/show_bug.cgi?id=163897

Reviewed by Michael Catanzaro.

* Source/cmake/OptionsCommon.cmake: Apply -fno-strict-aliasing,
-fno-exceptions, and -fno-rtti flags to all configurations,
instead of only "Release".

git-svn-id: http://svn.webkit.org/repository/webkit/trunk@211635 268f45cc-cd09-0410-ab3c-d52691b4dbfc

ChangeLog
Source/cmake/OptionsCommon.cmake

index baed24a..edfd324 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,14 @@
+2017-02-03  Konstantin Tokarev  <annulen@yandex.ru>
+
+        [CMake] RelWithDebInfo builds are super broken at runtime
+        https://bugs.webkit.org/show_bug.cgi?id=163897
+
+        Reviewed by Michael Catanzaro.
+
+        * Source/cmake/OptionsCommon.cmake: Apply -fno-strict-aliasing,
+        -fno-exceptions, and -fno-rtti flags to all configurations,
+        instead of only "Release".
+
 2017-02-03  Carlos Garcia Campos  <cgarcia@igalia.com>
 
         [GTK] Add initial implementation of resource usage overlay
index 59b7128..163029f 100644 (file)
@@ -38,8 +38,8 @@ set_property(GLOBAL PROPERTY USE_FOLDERS ON)
 define_property(TARGET PROPERTY FOLDER INHERITED BRIEF_DOCS "folder" FULL_DOCS "IDE folder name")
 
 if (COMPILER_IS_GCC_OR_CLANG)
-    set(CMAKE_C_FLAGS_RELEASE "${CMAKE_C_FLAGS_RELEASE} -fno-exceptions -fno-strict-aliasing")
-    set(CMAKE_CXX_FLAGS_RELEASE "${CMAKE_CXX_FLAGS_RELEASE} -fno-exceptions -fno-strict-aliasing -fno-rtti")
+    set(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} -fno-exceptions -fno-strict-aliasing")
+    set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -fno-exceptions -fno-strict-aliasing -fno-rtti")
     set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -std=c++1y")
 endif ()