diff options
author | Matt Mitchell <mmitche@microsoft.com> | 2015-02-05 14:42:03 -0800 |
---|---|---|
committer | Matt Mitchell <mmitche@microsoft.com> | 2015-02-05 15:37:29 -0800 |
commit | 72a80f017ead336ee7b128f8369a9ba4b57c8b89 (patch) | |
tree | 66b59630d57b8668d3c617b850aa9c6ae6cae86b /src/dlls/mscorrc | |
parent | a71f0715019300102e9b688e682f8781068f3265 (diff) | |
download | coreclr-72a80f017ead336ee7b128f8369a9ba4b57c8b89.tar.gz coreclr-72a80f017ead336ee7b128f8369a9ba4b57c8b89.tar.bz2 coreclr-72a80f017ead336ee7b128f8369a9ba4b57c8b89.zip |
Enable PDB generation for corerun and coreconsole
Corerun and coreconsole are exes, so they don't share the same linker flags as the shared libraries. Set DEBUG on the EXE flags so that Release always gets debug info.
Don't pass incremental linking, incompatible with debug type
Diffstat (limited to 'src/dlls/mscorrc')
-rw-r--r-- | src/dlls/mscorrc/full/CMakeLists.txt | 4 | ||||
-rw-r--r-- | src/dlls/mscorrc/small/CMakeLists.txt | 6 |
2 files changed, 9 insertions, 1 deletions
diff --git a/src/dlls/mscorrc/full/CMakeLists.txt b/src/dlls/mscorrc/full/CMakeLists.txt index 2f7b0ae236..ae3332b2ac 100644 --- a/src/dlls/mscorrc/full/CMakeLists.txt +++ b/src/dlls/mscorrc/full/CMakeLists.txt @@ -6,3 +6,7 @@ add_definitions(-DFX_VER_INTERNALNAME_STR=mscorrc.debug.dll) # add the install targets install (TARGETS mscorrc.debug DESTINATION .) + +if(WIN32) +install (FILES ${CMAKE_CURRENT_BINARY_DIR}/$<CONFIG>/mscorrc.debug.pdb DESTINATION PDB) +endif(WIN32)
\ No newline at end of file diff --git a/src/dlls/mscorrc/small/CMakeLists.txt b/src/dlls/mscorrc/small/CMakeLists.txt index 39cd975b85..b36c811873 100644 --- a/src/dlls/mscorrc/small/CMakeLists.txt +++ b/src/dlls/mscorrc/small/CMakeLists.txt @@ -5,4 +5,8 @@ add_library(mscorrc SHARED add_definitions(-DFX_VER_INTERNALNAME_STR=mscorrc.dll) # add the install targets -install (TARGETS mscorrc DESTINATION .)
\ No newline at end of file +install (TARGETS mscorrc DESTINATION .) + +if(WIN32) +install (FILES ${CMAKE_CURRENT_BINARY_DIR}/$<CONFIG>/mscorrc.pdb DESTINATION PDB) +endif(WIN32)
\ No newline at end of file |