diff options
Diffstat (limited to 'src/gcinfo')
-rw-r--r-- | src/gcinfo/CMakeLists.txt | 10 | ||||
-rw-r--r-- | src/gcinfo/gcinfo_arm/CMakeLists.txt | 7 | ||||
-rw-r--r-- | src/gcinfo/gcinfo_arm64/CMakeLists.txt | 7 |
3 files changed, 24 insertions, 0 deletions
diff --git a/src/gcinfo/CMakeLists.txt b/src/gcinfo/CMakeLists.txt index e4730c69b3..ab7e48dcfd 100644 --- a/src/gcinfo/CMakeLists.txt +++ b/src/gcinfo/CMakeLists.txt @@ -23,5 +23,15 @@ endif(CLR_CMAKE_PLATFORM_UNIX) add_subdirectory(lib) add_subdirectory(crossgen) +if (CLR_CMAKE_PLATFORM_ARCH_I386) + # On x86, build RyuJIT/ARM32 cross-compiling altjit. + add_subdirectory(gcinfo_arm) +endif () + +if (CLR_CMAKE_PLATFORM_ARCH_AMD64) + # On amd64, build RyuJIT/ARM64 cross-compiling altjit. + add_subdirectory(gcinfo_arm64) +endif () + _install (FILES gcinfoencoder.cpp DESTINATION gcinfo) diff --git a/src/gcinfo/gcinfo_arm/CMakeLists.txt b/src/gcinfo/gcinfo_arm/CMakeLists.txt new file mode 100644 index 0000000000..3617c97f3f --- /dev/null +++ b/src/gcinfo/gcinfo_arm/CMakeLists.txt @@ -0,0 +1,7 @@ +remove_definitions(-D_TARGET_X86_=1) +add_definitions(-D_TARGET_ARM_) + +add_library_clr(gcinfo_arm + STATIC + ${GCINFO_SOURCES} +) diff --git a/src/gcinfo/gcinfo_arm64/CMakeLists.txt b/src/gcinfo/gcinfo_arm64/CMakeLists.txt new file mode 100644 index 0000000000..116ed7c1d6 --- /dev/null +++ b/src/gcinfo/gcinfo_arm64/CMakeLists.txt @@ -0,0 +1,7 @@ +remove_definitions(-D_TARGET_AMD64_=1) +add_definitions(-D_TARGET_ARM64_) + +add_library_clr(gcinfo_arm64 + STATIC + ${GCINFO_SOURCES} +) |