summaryrefslogtreecommitdiff
path: root/src/vm/pefile.cpp
diff options
context:
space:
mode:
authorBrian Sullivan <briansul@microsoft.com>2017-05-25 15:27:15 -0700
committerBrian Sullivan <briansul@microsoft.com>2017-05-25 15:27:15 -0700
commitfa29376a493f76cb6328030f12e46c0943a6daa0 (patch)
tree4f25b996388689202c120b4e64d4515fc7f430d0 /src/vm/pefile.cpp
parenta30462946d3bc1e3f829adc05cae459cea8f130e (diff)
downloadcoreclr-fa29376a493f76cb6328030f12e46c0943a6daa0.tar.gz
coreclr-fa29376a493f76cb6328030f12e46c0943a6daa0.tar.bz2
coreclr-fa29376a493f76cb6328030f12e46c0943a6daa0.zip
Remove the check that requires an instrumented flags for mscorlib when collecting IBC data
This is not needed for CoreCLR and blocks some valuable usage cases.
Diffstat (limited to 'src/vm/pefile.cpp')
-rw-r--r--src/vm/pefile.cpp11
1 files changed, 0 insertions, 11 deletions
diff --git a/src/vm/pefile.cpp b/src/vm/pefile.cpp
index 5d908c5cb4..5d83ee97cb 100644
--- a/src/vm/pefile.cpp
+++ b/src/vm/pefile.cpp
@@ -1232,17 +1232,6 @@ BOOL PEAssembly::CheckNativeImageVersion(PEImage *peimage)
CorCompileConfigFlags configFlags = PEFile::GetNativeImageConfigFlagsWithOverrides();
- if (IsSystem())
- {
- // Require instrumented flags for mscorlib when collecting IBC data
- CorCompileConfigFlags instrumentationConfigFlags = (CorCompileConfigFlags) (configFlags & CORCOMPILE_CONFIG_INSTRUMENTATION);
- if ((info->wConfigFlags & instrumentationConfigFlags) != instrumentationConfigFlags)
- {
- ExternalLog(LL_ERROR, "Instrumented native image for System.Private.CoreLib.dll expected.");
- ThrowHR(COR_E_NI_AND_RUNTIME_VERSION_MISMATCH);
- }
- }
-
// Otherwise, match regardless of the instrumentation flags
configFlags = (CorCompileConfigFlags) (configFlags & ~(CORCOMPILE_CONFIG_INSTRUMENTATION_NONE | CORCOMPILE_CONFIG_INSTRUMENTATION));