Check PAL first, and then Windows Phone (#7354)
authorJonghyun Park <parjong@gmail.com>
Mon, 26 Sep 2016 10:58:35 +0000 (19:58 +0900)
committerJan Vorlicek <janvorli@microsoft.com>
Mon, 26 Sep 2016 10:58:35 +0000 (12:58 +0200)
src/zap/zapimage.cpp

index f7737ba..8f2bc78 100644 (file)
@@ -1705,16 +1705,16 @@ void ZapImage::OutputTables()
         SetSizeOfStackCommit(m_ModuleDecoder.GetSizeOfStackCommit());
     }
 
-#if defined(_TARGET_ARM_) && defined(FEATURE_CORECLR) && defined(FEATURE_CORESYSTEM)
+#if defined(FEATURE_PAL)
+    // PAL library requires native image sections to align to page bounaries.
+    SetFileAlignment(0x1000);
+#elif defined(_TARGET_ARM_) && defined(FEATURE_CORECLR) && defined(FEATURE_CORESYSTEM)
     if (!IsReadyToRunCompilation())
     {
         // On ARM CoreSys builds, crossgen will use 4k file alignment, as requested by Phone perf team
         // to improve perf on phones with compressed system partitions.
         SetFileAlignment(0x1000);
     }
-#elif defined(FEATURE_PAL)
-    // PAL library requires native image sections to align to page bounaries.
-    SetFileAlignment(0x1000);
 #endif
 }