307f05cdf01f8ff68d39fd3c246fc3406cbe78de
[platform/upstream/coreclr.git] / crossgen.cmake
1 # Contains the crossgen build specific definitions. Included by the leaf crossgen cmake files.
2
3 add_definitions(
4     -DCROSSGEN_COMPILE
5     -DCROSS_COMPILE
6     -DFEATURE_NATIVE_IMAGE_GENERATION
7     -DSELF_NO_HOST)
8
9 remove_definitions(
10     -DFEATURE_CODE_VERSIONING
11     -DEnC_SUPPORTED
12     -DFEATURE_EVENT_TRACE=1
13     -DFEATURE_LOADER_OPTIMIZATION
14     -DFEATURE_MULTICOREJIT
15     -DFEATURE_PERFMAP
16     -DFEATURE_RANDOMIZED_STRING_HASHING
17     -DFEATURE_REJIT
18     -DFEATURE_TIERED_COMPILATION
19     -DFEATURE_VERSIONING_LOG
20 )
21
22 if(FEATURE_READYTORUN)
23     add_definitions(-DFEATURE_READYTORUN_COMPILER)
24 endif(FEATURE_READYTORUN)
25
26 if(CLR_CMAKE_PLATFORM_LINUX)
27     add_definitions(-DFEATURE_PERFMAP)
28 endif(CLR_CMAKE_PLATFORM_LINUX)