From ebc35416c4b57a3415f4f1bbde385e159eb520ca Mon Sep 17 00:00:00 2001 From: Brian Robbins Date: Tue, 6 Oct 2015 16:36:54 -0700 Subject: Compile with frame pointers on UNIX builds. --- CMakeLists.txt | 3 +++ 1 file changed, 3 insertions(+) (limited to 'CMakeLists.txt') diff --git a/CMakeLists.txt b/CMakeLists.txt index d899ee6cab..ab351ed0da 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -395,6 +395,9 @@ add_compile_options(-fms-extensions ) #-fms-compatibility Enable full Microsoft Visual C++ compatibility #-fms-extensions Accept some non-standard constructs supported by the Microsoft compiler +# Disable frame pointer optimizations so profilers can get better call stacks +add_compile_options(-fno-omit-frame-pointer) + endif(CLR_CMAKE_PLATFORM_UNIX) add_subdirectory(src/debug/debug-pal) -- cgit v1.2.3