Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/mono/corert.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJeremy Koritzinsky <jkoritzinsky@gmail.com>2018-03-19 10:43:52 +0300
committerMichal Strehovský <MichalStrehovsky@users.noreply.github.com>2018-03-19 10:43:52 +0300
commit31651b1066d54ad75cb073d2b9063a45b18758ba (patch)
tree8956609774ccc023613609f30a8021f231d73938 /src/Native/Runtime/Full
parent828a35d585cabd47cc74c58a4570e3c6eccecdae (diff)
Make Server GC component optional (#5565)
Make the Server GC an optional component by building two flavors of the runtime and selecting a specific one in the build via the `ServerGarbageCollection` MSBuild property. Don't build the Server GC flavor for Web Assembly. Fixes #5182, Fixes #5306.
Diffstat (limited to 'src/Native/Runtime/Full')
-rw-r--r--src/Native/Runtime/Full/CMakeLists.txt8
1 files changed, 7 insertions, 1 deletions
diff --git a/src/Native/Runtime/Full/CMakeLists.txt b/src/Native/Runtime/Full/CMakeLists.txt
index af7de3a21..fff2da4b3 100644
--- a/src/Native/Runtime/Full/CMakeLists.txt
+++ b/src/Native/Runtime/Full/CMakeLists.txt
@@ -11,6 +11,11 @@ add_definitions(-DFEATURE_RX_THUNKS)
add_library(Runtime STATIC ${COMMON_RUNTIME_SOURCES} ${FULL_RUNTIME_SOURCES} ${RUNTIME_SOURCES_ARCH_ASM})
+add_library(Runtime.ServerGC STATIC ${COMMON_RUNTIME_SOURCES} ${FULL_RUNTIME_SOURCES} ${RUNTIME_SOURCES_ARCH_ASM} ${SERVER_GC_SOURCES})
+
+target_compile_definitions(Runtime.ServerGC PRIVATE -DFEATURE_SVR_GC)
+
+
# Get the current list of definitions
get_compile_definitions(DEFINITIONS)
@@ -72,7 +77,8 @@ foreach(CONFIG IN LISTS CMAKE_CONFIGURATION_TYPES)
endforeach()
# Install the static Runtime library
-install (TARGETS Runtime DESTINATION sdk)
+install (TARGETS Runtime Runtime.ServerGC DESTINATION sdk)
if(WIN32)
install (FILES ${CMAKE_CURRENT_BINARY_DIR}/Runtime.dir/$<CONFIG>/Runtime.pdb DESTINATION sdk)
+ install (FILES ${CMAKE_CURRENT_BINARY_DIR}/Runtime.ServerGC.dir/$<CONFIG>/Runtime.ServerGC.pdb DESTINATION sdk)
endif()