summaryrefslogtreecommitdiff
path: root/src/tools
diff options
context:
space:
mode:
authorKyungwoo Lee <kyulee@microsoft.com>2015-11-24 20:34:08 (GMT)
committerKyungwoo Lee <kyulee@microsoft.com>2015-11-25 19:58:52 (GMT)
commit1b6658714821566dd9ab78dcf1fe96fcb0f8772a (patch)
treec27daab52b3dbadd9cdf7620cb7b94ffceb2d62b /src/tools
parent6936820475b8c6b66de1807b0d123c195e18b868 (diff)
downloadcoreclr-1b6658714821566dd9ab78dcf1fe96fcb0f8772a.zip
coreclr-1b6658714821566dd9ab78dcf1fe96fcb0f8772a.tar.gz
coreclr-1b6658714821566dd9ab78dcf1fe96fcb0f8772a.tar.bz2
Enable ILDASM for Windows
This enables building ILDASM with Cmake for Windows. This ILDASM now depends on CoreCLR targeting cross-platform and thus I dropped some features like GUI/PDB -- default output is console. Metadata related APIs in CoreCLR are directly exported, and used in ILDASM: MetaDataGetDispenser GetMetaDataInternalInterface GetMetaDataInternalInterfaceFromPublic GetMetaDataPublicInterfaceFromInternal The code path is diverged by a definition FEATURE_CORECLR. There are still Window specific components. Among others, resource file/dll generation is the one that should be ported.
Diffstat (limited to 'src/tools')
-rw-r--r--src/tools/metainfo/mdinfo.cpp4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/tools/metainfo/mdinfo.cpp b/src/tools/metainfo/mdinfo.cpp
index b0db359..334628b 100644
--- a/src/tools/metainfo/mdinfo.cpp
+++ b/src/tools/metainfo/mdinfo.cpp
@@ -23,7 +23,9 @@
#define LEGACY_ACTIVATION_SHIM_LOAD_LIBRARY WszLoadLibrary
#define LEGACY_ACTIVATION_SHIM_DEFINE_CoInitializeEE
+#ifndef FEATURE_CORECLR
#include "LegacyActivationShim.h"
+#endif
#define ENUM_BUFFER_SIZE 10
#define TAB_SIZE 8
@@ -754,10 +756,12 @@ void MDInfo::Error(const char* szError, HRESULT hr)
pIErr->Release();
}
+#ifndef FEATURE_CORECLR
LegacyActivationShim::CoUninitializeCor();
#ifndef FEATURE_PAL
CoUninitialize();
#endif
+#endif
exit(hr);
} // void MDInfo::Error()