File tree 3 files changed +51
-0
lines changed 3 files changed +51
-0
lines changed Original file line number Diff line number Diff line change @@ -411,3 +411,9 @@ if ((CLR_CMAKE_PLATFORM_ARCH_I386 OR CLR_CMAKE_PLATFORM_ARCH_AMD64) AND WIN32)
411
411
# On amd64, build Linux/AMD64 altjit. This enables UNIX_AMD64_ABI.
412
412
add_subdirectory (linuxnonjit)
413
413
endif ()
414
+
415
+ # Stark JIT
416
+ if (CLR_CMAKE_PLATFORM_ARCH_I386 OR CLR_CMAKE_PLATFORM_ARCH_AMD64)
417
+ add_subdirectory (stark-ncl-clrjit-x64)
418
+ add_subdirectory (stark-ncl-clrjit-aarch64)
419
+ endif ()
Original file line number Diff line number Diff line change
1
+ project (stark-ncl-clrjit-aarch64)
2
+
3
+ add_definitions (-DSTARK)
4
+ add_definitions (-DFEATURE_NO_HOST)
5
+ add_definitions (-DSELF_NO_HOST)
6
+ remove_definitions (-DFEATURE_MERGE_JIT_AND_ENGINE)
7
+ add_definitions (-D_TARGET_UNIX_)
8
+
9
+ if (FEATURE_READYTORUN)
10
+ add_definitions (-DFEATURE_READYTORUN_COMPILER)
11
+ endif (FEATURE_READYTORUN)
12
+
13
+ remove_definitions (-D_TARGET_AMD64_)
14
+ add_definitions (-D_TARGET_ARM64_)
15
+ set (JIT_ARCH_SOURCES ${JIT_ARM64_SOURCES} ${JIT_STARK_SOURCES} )
16
+ set (JIT_ARCH_LINK_LIBRARIES gcinfo_arm64)
17
+
18
+ add_jit(stark-ncl-clrjit-aarch64)
19
+
20
+ target_include_directories (stark-ncl-clrjit-aarch64 PRIVATE
21
+ ${CMAKE_CURRENT_LIST_DIR} /..
22
+ ${JIT_SOURCE_DIR}
23
+ )
Original file line number Diff line number Diff line change
1
+ project (stark-ncl-clrjit-x64)
2
+
3
+ add_definitions (-DSTARK)
4
+ add_definitions (-DFEATURE_NO_HOST)
5
+ add_definitions (-DSELF_NO_HOST)
6
+ remove_definitions (-DFEATURE_MERGE_JIT_AND_ENGINE)
7
+ add_definitions (-D_TARGET_UNIX_)
8
+
9
+ if (FEATURE_READYTORUN)
10
+ add_definitions (-DFEATURE_READYTORUN_COMPILER)
11
+ endif (FEATURE_READYTORUN)
12
+
13
+ add_definitions (-DUNIX_AMD64_ABI)
14
+ set (JIT_ARCH_SOURCES ${JIT_AMD64_SOURCES} ${JIT_STARK_SOURCES} )
15
+ set (JIT_ARCH_LINK_LIBRARIES gcinfo)
16
+
17
+ add_jit(stark-ncl-clrjit-x64)
18
+
19
+ target_include_directories (stark-ncl-clrjit-x64 PRIVATE
20
+ ${CMAKE_CURRENT_LIST_DIR} /..
21
+ ${JIT_SOURCE_DIR}
22
+ )
You can’t perform that action at this time.
0 commit comments