Disable fragile NGen when compiling SPC.dll for _TARGET_ARM_
authorEgor Chesakov <Egor.Chesakov@microsoft.com>
Fri, 9 Feb 2018 00:34:27 +0000 (16:34 -0800)
committerEgor Chesakov <Egor.Chesakov@microsoft.com>
Mon, 12 Mar 2018 16:55:39 +0000 (09:55 -0700)
src/tools/crossgen/crossgen.cpp

index d0cc54a..2c7f76e 100644 (file)
@@ -833,8 +833,11 @@ int _cdecl wmain(int argc, __in_ecount(argc) WCHAR **argv)
     // Are we compiling mscorlib.dll? 
     bool fCompilingMscorlib = StringEndsWith((LPWSTR)pwzFilename, CoreLibName_IL_W);
 
+// Disable fragile NGen when compiling Mscorlib for ARM.
+#ifndef _TARGET_ARM_
     if (fCompilingMscorlib)
         dwFlags &= ~NGENWORKER_FLAGS_READYTORUN;
+#endif // _TARGET_ARM_
 
     if(pwzPlatformAssembliesPaths != nullptr)
     {