# Contains the crossgen build specific definitions. Included by the leaf crossgen cmake files.

add_definitions(
    -DCROSSGEN_COMPILE
    -DCROSS_COMPILE
    -DFEATURE_NATIVE_IMAGE_GENERATION
    -DFEATURE_MERGE_JIT_AND_ENGINE
    -DSELF_NO_HOST)

remove_definitions(
    -DEnC_SUPPORTED
    -DFEATURE_EVENT_TRACE=1
    -DFEATURE_LOADER_OPTIMIZATION
    -DFEATURE_MULTICOREJIT
    -DFEATURE_PERFMAP
    -DFEATURE_RANDOMIZED_STRING_HASHING
    -DFEATURE_VERSIONING_LOG
)

if(WIN32)
    add_definitions(-MT)
    if(FEATURE_READYTORUN)
        add_definitions(-DFEATURE_READYTORUN_COMPILER)
    endif(FEATURE_READYTORUN)
endif(WIN32)

if(CLR_CMAKE_PLATFORM_LINUX)
    add_definitions(-DFEATURE_PERFMAP)
endif(CLR_CMAKE_PLATFORM_LINUX)
