blob: e4da4f17bbf9e842357bbbe70ec5ea325fccefd4 (
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
28
29
30
31
32
33
34
35
36
|
project(ClrJit)
if(CLR_CMAKE_PLATFORM_ARCH_I386 OR CLR_CMAKE_PLATFORM_ARCH_ARM)
add_definitions(-DLEGACY_BACKEND)
endif(CLR_CMAKE_PLATFORM_ARCH_I386 OR CLR_CMAKE_PLATFORM_ARCH_ARM)
# Disable the following for UNIX altjit on Windows
if(CLR_CMAKE_PLATFORM_UNIX)
add_compile_options(-fPIC)
add_definitions(-DFEATURE_MERGE_JIT_AND_ENGINE)
add_library_clr(ClrJit
STATIC
${SHARED_LIB_SOURCES}
)
add_dependencies(ClrJit coreclrpal gcinfo)
else()
add_library_clr(ClrJit
${SOURCES}
)
# Disable up to here (see above) the following for UNIX altjit on Windows
# Enable the following for UNIX altjit on Windows
# add_library_clr(ClrJit
# SHARED
# ${SHARED_LIB_SOURCES}
# )
# Enable the following for UNIX altjit on Windows
#target_link_libraries(ClrJit
# utilcode
# gcinfo
# runtime_library
# )
# Disable the following for UNIX altjit on Windows
endif(CLR_CMAKE_PLATFORM_UNIX)
|