summaryrefslogtreecommitdiff
path: root/crossgen.cmake
blob: 75739dfc734fd145d0be3a49b71c0b9a15720a9e (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
# 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(
    -DFEATURE_CODE_VERSIONING
    -DEnC_SUPPORTED
    -DFEATURE_EVENT_TRACE=1
    -DFEATURE_LOADER_OPTIMIZATION
    -DFEATURE_MULTICOREJIT
    -DFEATURE_PERFMAP
    -DFEATURE_REJIT
    -DFEATURE_TIERED_COMPILATION
    -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)