summaryrefslogtreecommitdiff
path: root/cmake
diff options
context:
space:
mode:
Diffstat (limited to 'cmake')
-rw-r--r--cmake/mbgl.cmake3
1 files changed, 3 insertions, 0 deletions
diff --git a/cmake/mbgl.cmake b/cmake/mbgl.cmake
index 9dd29375ef..2381c01205 100644
--- a/cmake/mbgl.cmake
+++ b/cmake/mbgl.cmake
@@ -191,6 +191,9 @@ function(initialize_xcode_cxx_build_settings target)
# -flto
set_xcode_property(${target} LLVM_LTO $<$<OR:$<CONFIG:Release>,$<CONFIG:RelWithDebugInfo>>:YES>)
+
+ # Make releases debuggable.
+ set_xcode_property(${target} GCC_GENERATE_DEBUGGING_SYMBOLS YES)
endfunction()
# CMake 3.1 does not have this yet.