diff options
author | Fadi Hanna <fadim@microsoft.com> | 2019-05-16 07:19:31 -0700 |
---|---|---|
committer | GitHub <noreply@github.com> | 2019-05-16 07:19:31 -0700 |
commit | ff61bfc8aa9f0f71feddc8c03d824b13cc61215c (patch) | |
tree | 586abe2b5dbb71067c5763b096749c9faac1d2c3 /src/zap | |
parent | 5ad457b6c1562907e81936a67955c98cf4034857 (diff) | |
download | coreclr-ff61bfc8aa9f0f71feddc8c03d824b13cc61215c.tar.gz coreclr-ff61bfc8aa9f0f71feddc8c03d824b13cc61215c.tar.bz2 coreclr-ff61bfc8aa9f0f71feddc8c03d824b13cc61215c.zip |
Suppress crossgen warnings on failures to load types/methods from IBC data. (#24596)
It's not unusual to see these types of warnings with incremental IBC.
These warnings will move under the crossgen verbose mode.
Diffstat (limited to 'src/zap')
-rw-r--r-- | src/zap/zapimage.cpp | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/src/zap/zapimage.cpp b/src/zap/zapimage.cpp index a70b710fe0..e64c0b67d8 100644 --- a/src/zap/zapimage.cpp +++ b/src/zap/zapimage.cpp @@ -3573,6 +3573,10 @@ void ZapImage::Error(mdToken token, HRESULT hr, UINT resID, LPCWSTR message) if ((resID == IDS_IBC_MISSING_EXTERNAL_TYPE) || (resID == IDS_IBC_MISSING_EXTERNAL_METHOD)) { + // Suppress printing IBC related warnings except in verbose mode. + if (m_zapper->m_pOpt->m_ignoreErrors && !m_zapper->m_pOpt->m_verbose) + return; + // Supress printing of "The generic type/method specified by the IBC data is not available to this assembly" level = CORZAP_LOGLEVEL_INFO; } |