File tree Expand file tree Collapse file tree
src/coreclr/dlls/mscordac Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -212,8 +212,15 @@ if(CLR_CMAKE_HOST_WIN32)
212212 string (REGEX MATCH "#define VER_FILEVERSION[ \t ]+[0-9]+(,[0-9]+)+" FILE_VERSION_LINE "${NATIVE_VERSION_HEADER} " )
213213 string (REGEX MATCHALL "[0-9]+" FILE_VERSION_COMPONENTS "${FILE_VERSION_LINE} " )
214214 list (JOIN FILE_VERSION_COMPONENTS "." FILE_VERSION)
215- install (PROGRAMS $<TARGET_FILE :mscordaccore > RENAME mscordaccore_${LONG_NAME_HOST_ARCH} _${LONG_NAME_TARGET_ARCH} _${FILE_VERSION} .dll DESTINATION sharedFramework COMPONENT runtime )
215+
216+ # This is unlike all other targets in the runtime, and is largely a long standing contract between
217+ # debuggers and the runtime. This long form supports postmortem cross-architecture diagnostic scenarios.
218+ # It doesn't make sense to complicate install_clr for this purpose, so keep it self-contained here.
219+ set (LONG_NAME_BASE mscordaccore_${LONG_NAME_HOST_ARCH} _${LONG_NAME_TARGET_ARCH} _${FILE_VERSION} )
220+ install (PROGRAMS $<TARGET_FILE :mscordaccore > RENAME ${LONG_NAME_BASE} .dll DESTINATION sharedFramework COMPONENT runtime )
221+ install (FILES $<TARGET_PDB_FILE :mscordaccore > RENAME ${LONG_NAME_BASE} .pdb DESTINATION sharedFramework/PDB COMPONENT runtime )
216222 if (NOT FEATURE_CROSSBITNESS)
217- install (PROGRAMS $<TARGET_FILE :mscordaccore > RENAME mscordaccore_${LONG_NAME_HOST_ARCH} _${LONG_NAME_TARGET_ARCH} _${FILE_VERSION} .dll DESTINATION sharedFramework COMPONENT crosscomponents)
223+ install (PROGRAMS $<TARGET_FILE :mscordaccore > RENAME ${LONG_NAME_BASE} .dll DESTINATION sharedFramework COMPONENT crosscomponents)
224+ install (FILES $<TARGET_PDB_FILE :mscordaccore > RENAME ${LONG_NAME_BASE} .pdb DESTINATION sharedFramework/PDB COMPONENT crosscomponents)
218225 endif ()
219226endif ()
You can’t perform that action at this time.
0 commit comments