From bbd32c484f2d00a566217e52bddb6960c2ec0b22 Mon Sep 17 00:00:00 2001 From: Sean Gillespie Date: Mon, 23 Jan 2017 19:44:10 -0800 Subject: [Local GC] Provide an implementation of GCToOSInterface for Unix-like platforms (#8976) * Add way to build with FEATURE_STANDALONE_GC from build.sh * Make CMake changes to build the GC 'PAL' as its own build target (to avoid -nostdinc). In addition, introduce a "GC PAL" that provides an implementation of GCToOSInterface on Unix-like platforms, for use with FEATURE_STANDALONE_GC. --- CMakeLists.txt | 8 ++++++++ 1 file changed, 8 insertions(+) (limited to 'CMakeLists.txt') diff --git a/CMakeLists.txt b/CMakeLists.txt index 2c39780e29..cdf157e186 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -579,6 +579,14 @@ endif(WIN32) include_directories("src/pal/prebuilt/inc") include_directories("bin/obj") +if(FEATURE_STANDALONE_GC) + add_definitions(-DFEATURE_STANDALONE_GC) + + if(CLR_CMAKE_PLATFORM_UNIX) + add_subdirectory(src/gc/unix) + endif(CLR_CMAKE_PLATFORM_UNIX) +endif(FEATURE_STANDALONE_GC) + if (CLR_CMAKE_PLATFORM_UNIX) include_directories("src/pal/inc") include_directories("src/pal/inc/rt") -- cgit v1.2.3