summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorKonstantin Tokarev <annulen@yandex.ru>2019-08-13 20:24:10 +0300
committerKonstantin Tokarev <annulen@yandex.ru>2019-08-13 20:25:33 +0300
commit6bdfdd20faa222d902cfd244590bfab8776ee34a (patch)
tree58b7c3e672abb7d7843dfdf2e08cfda42f640d22
parent7e91d6dbd38dce4fcab9616dbf30ddc806723a8c (diff)
Don't use -fdebug-types-section on macOS
It causes error with macOS 10.14 and is probably useless on older versions. Change-Id: Ibea62e531ed23015f6a20ecd119bac7e1f1e8067 Reviewed-by: Konstantin Tokarev <annulen@yandex.ru>
-rw-r--r--Source/PlatformQt.cmake8
1 files changed, 6 insertions, 2 deletions
diff --git a/Source/PlatformQt.cmake b/Source/PlatformQt.cmake
index 7f0a54272..61648331b 100644
--- a/Source/PlatformQt.cmake
+++ b/Source/PlatformQt.cmake
@@ -33,8 +33,12 @@ if (USE_MINIMAL_DEBUG_INFO AND CMAKE_BUILD_TYPE STREQUAL "Debug")
target_compile_options(gtest PRIVATE -g0 -O1)
endif ()
- target_compile_options(WebKit PRIVATE -g1 -O1 -fdebug-types-section)
- target_compile_options(WebKit2 PRIVATE -g1 -O1 -fdebug-types-section)
+ target_compile_options(WebKit PRIVATE -g1 -O1)
+ target_compile_options(WebKit2 PRIVATE -g1 -O1)
+ if (NOT APPLE)
+ target_compile_options(WebKit PRIVATE -fdebug-types-section)
+ target_compile_options(WebKit2 PRIVATE -fdebug-types-section)
+ endif ()
endif ()
if (USE_MINIMAL_DEBUG_INFO_MSVC AND MSVC AND CMAKE_BUILD_TYPE STREQUAL "Debug")