diff options
author | Jan Kotas <jkotas@microsoft.com> | 2017-10-25 20:18:17 +0300 |
---|---|---|
committer | GitHub <noreply@github.com> | 2017-10-25 20:18:17 +0300 |
commit | 82dbbf4dc4d818fa99fbdb4e4e112a7b3ca238b1 (patch) | |
tree | 14dd612c607f35074f26518e53acecf52a7a3f24 /src/Native | |
parent | 60160194994e400ed7c44fa78bea854fb082432a (diff) |
Enable debug info in Release builds of the runtime (#4798)
Matches what we do in CoreCLR. The crashes on release build are impossible to debug without this.
Diffstat (limited to 'src/Native')
-rw-r--r-- | src/Native/CMakeLists.txt | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/Native/CMakeLists.txt b/src/Native/CMakeLists.txt index 98a0214cf..f654cdd89 100644 --- a/src/Native/CMakeLists.txt +++ b/src/Native/CMakeLists.txt @@ -228,7 +228,7 @@ if (UPPERCASE_CMAKE_BUILD_TYPE STREQUAL DEBUG) add_definitions(-DDEBUG) add_definitions(-D_DEBUG) elseif (UPPERCASE_CMAKE_BUILD_TYPE STREQUAL RELEASE) - add_compile_options (-O3) + add_compile_options (-g -O3) add_definitions(-DNDEBUG) else () message(FATAL_ERROR "Unknown build type. Set CMAKE_BUILD_TYPE to DEBUG or RELEASE.") |