Add .NET 9 build support
authorGleb Balykov <g.balykov@samsung.com>
Mon, 12 Aug 2024 14:50:09 +0000 (17:50 +0300)
committerGleb Balykov/Advanced System SW Lab /SRR/Staff Engineer/Samsung Electronics <g.balykov@samsung.com>
Wed, 14 Aug 2024 13:25:31 +0000 (16:25 +0300)
CMakeLists.txt
src/CMakeLists.txt

index b9de06dd21e626b1f3b28c9cd48419331128953a..d2037bd78465825265246586dcb1a092b8c72f17 100644 (file)
@@ -44,6 +44,7 @@ set(VERSION_PROPS_PATH "${CORECLR_DIR}/eng/Versions.props")
 if (NOT EXISTS "${CORECLR_SRC_DIR}/pal")
     set(CORECLR_SRC_DIR "${CORECLR_DIR}")
     set(VERSION_PROPS_PATH "${CORECLR_DIR}/../../eng/Versions.props")
+    set(NATIVE_SRC_DIR "${CORECLR_DIR}/../native")
 endif()
 
 if (WIN32)
index 42f36312e778522a983714460dcd00892fd63938..ab71c86a11d6619c415e040bfef35983eca8eded 100644 (file)
@@ -35,6 +35,10 @@ include_directories(${CORECLR_SRC_DIR}/dlls/dbgshim)
 include_directories(${CORECLR_SRC_DIR}/coreclr/hosts/inc)
 # for dotnet-runtime (> 3.x)
 include_directories(${CORECLR_SRC_DIR}/hosts/inc)
+# for dotnet-runtime (> 8.x)
+if (DEFINED NATIVE_SRC_DIR)
+    include_directories(${NATIVE_SRC_DIR})
+endif()
 
 # Build native part of the debugger