Skip to content

Commit b869e8d

Browse files
authored
adding clrgc variant with regions enabled (#89129)
* adding clrgc variant with regions enabled * only build regions for 64 bit platforms * rename to clrgcexp for experimental
1 parent e5efd80 commit b869e8d

File tree

1 file changed

+10
-0
lines changed

1 file changed

+10
-0
lines changed

src/coreclr/gc/CMakeLists.txt

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -104,6 +104,16 @@ list(APPEND GC_SOURCES ${GC_HEADERS})
104104

105105
convert_to_absolute_path(GC_SOURCES ${GC_SOURCES})
106106

107+
# clrgcexp is build with standalone+regions
108+
if (CLR_CMAKE_TARGET_ARCH_ARM64 OR CLR_CMAKE_TARGET_ARCH_AMD64)
109+
add_library_clr(clrgcexp SHARED ${GC_SOURCES})
110+
add_dependencies(clrgcexp eventing_headers)
111+
target_link_libraries(clrgcexp PRIVATE ${GC_LINK_LIBRARIES})
112+
target_compile_definitions(clrgcexp PRIVATE -DUSE_REGIONS)
113+
install_clr(TARGETS clrgcexp DESTINATIONS . COMPONENT runtime)
114+
endif (CLR_CMAKE_TARGET_ARCH_ARM64 OR CLR_CMAKE_TARGET_ARCH_AMD64)
115+
116+
# clrgc is build with standalone+segments
107117
add_library_clr(clrgc SHARED ${GC_SOURCES})
108118
add_dependencies(clrgc eventing_headers)
109119
target_link_libraries(clrgc PRIVATE ${GC_LINK_LIBRARIES})

0 commit comments

Comments
 (0)