summaryrefslogtreecommitdiff
path: root/crossgen.cmake
diff options
context:
space:
mode:
authorJiyoung Yun <jy910.yun@samsung.com>2016-11-23 10:09:09 (GMT)
committerJiyoung Yun <jy910.yun@samsung.com>2016-11-23 10:09:09 (GMT)
commit4b4aad7217d3292650e77eec2cf4c198ea9c3b4b (patch)
tree98110734c91668dfdbb126fcc0e15ddbd93738ca /crossgen.cmake
parentfa45f57ed55137c75ac870356a1b8f76c84b229c (diff)
downloadcoreclr-4b4aad7217d3292650e77eec2cf4c198ea9c3b4b.zip
coreclr-4b4aad7217d3292650e77eec2cf4c198ea9c3b4b.tar.gz
coreclr-4b4aad7217d3292650e77eec2cf4c198ea9c3b4b.tar.bz2
Imported Upstream version 1.1.0upstream/1.1.0
Diffstat (limited to 'crossgen.cmake')
-rw-r--r--crossgen.cmake26
1 files changed, 26 insertions, 0 deletions
diff --git a/crossgen.cmake b/crossgen.cmake
new file mode 100644
index 0000000..4e0f896
--- /dev/null
+++ b/crossgen.cmake
@@ -0,0 +1,26 @@
+# Contains the crossgen build specific definitions. Included by the leaf crossgen cmake files.
+
+add_definitions(
+ -DCROSSGEN_COMPILE
+ -DCROSS_COMPILE
+ -DFEATURE_NATIVE_IMAGE_GENERATION
+ -DSELF_NO_HOST)
+
+remove_definitions(
+ -DEnC_SUPPORTED
+ -DFEATURE_EVENT_TRACE=1
+ -DFEATURE_LOADER_OPTIMIZATION
+ -DFEATURE_MULTICOREJIT
+ -DFEATURE_PERFMAP
+ -DFEATURE_RANDOMIZED_STRING_HASHING
+ -DFEATURE_REJIT
+ -DFEATURE_VERSIONING_LOG
+)
+
+if(FEATURE_READYTORUN)
+ add_definitions(-DFEATURE_READYTORUN_COMPILER)
+endif(FEATURE_READYTORUN)
+
+if(CLR_CMAKE_PLATFORM_LINUX)
+ add_definitions(-DFEATURE_PERFMAP)
+endif(CLR_CMAKE_PLATFORM_LINUX)