Enable ReadyToRun for Windows CoreCLR
authorJan Vorlicek <janvorli@microsoft.com>
Thu, 30 Apr 2015 17:22:42 +0000 (10:22 -0700)
committerJan Vorlicek <janvorli@microsoft.com>
Thu, 30 Apr 2015 17:25:44 +0000 (10:25 -0700)
This change enables the FEATURE_READYTORUN for CoreCLR on Windows.

CMakeLists.txt
crossgen.cmake
src/vm/CMakeLists.txt
src/vm/crossgen/CMakeLists.txt
src/zap/crossgen/CMakeLists.txt

index 5381f02..1562815 100644 (file)
@@ -452,6 +452,7 @@ add_definitions(-DFEATURE_NORM_IDNA_ONLY)
 add_definitions(-DFEATURE_PREJIT)
 if(WIN32)
     add_definitions(-DFEATURE_RANDOMIZED_STRING_HASHING)
+    add_definitions(-DFEATURE_READYTORUN)
 endif(WIN32)
 add_definitions(-DFEATURE_STANDALONE_SN)
 add_definitions(-DFEATURE_STRONGNAME_DELAY_SIGNING_ALLOWED)
index f8bdbd0..34dc3ae 100644 (file)
@@ -17,4 +17,5 @@ remove_definitions(
 
 if(WIN32)
     add_definitions(-MT)
+    add_definitions(-DFEATURE_READYTORUN_COMPILER)
 endif(WIN32)
index c29ae78..cad60fd 100644 (file)
@@ -253,6 +253,7 @@ set(VM_SOURCES_DAC_AND_WKS_WIN32
     clrtocomcall.cpp
     comtoclrcall.cpp
     rcwwalker.cpp
+    readytoruninfo.cpp
     umthunkhash.cpp #" Condition="'$(FeatureMixedMode)' == 'true'
     winrttypenameconverter.cpp
 )
index 2bf63c4..fdf7e95 100644 (file)
@@ -111,6 +111,12 @@ set(VM_CROSSGEN_SOURCES
     ../CrossgenRoResolveNamespace.cpp
 )
 
+if (WIN32)
+  list(APPEND VM_CROSSGEN_SOURCES
+      ../readytoruninfo.cpp
+  )
+endif (WIN32)
+
 include_directories(BEFORE ..)
 include_directories(${CLR_DIR}/src/gc)
 include_directories(../amd64)
index dc7d0e8..cebcd8c 100644 (file)
@@ -17,5 +17,12 @@ set(ZAP_SOURCES
     ../nativeformatwriter.cpp
 )
 
+if (WIN32)
+    list(APPEND ZAP_SOURCES
+        ../zapreadytorun.cpp
+        ../nativeformatwriter.cpp
+    )
+endif (WIN32)
+
 add_precompiled_header(common.h ../common.cpp ZAP_SOURCES)
 add_library(corzap_crossgen STATIC ${ZAP_SOURCES})