e34328aa3a
* arm64.patch for compilation on aarch64-* * darwin.patch for properly detecting possible arm64 darwin architectures * coreclr is now in dotnet/runtime repo (using 7.x branch as per netcoredbg recommendation) * netcoredbg now depends (during runtime) on DbgShim which was moved to a separate repo (dotnet/diagnostic). We need to pass -p:UseDbgShimDependency=true in order to include it in a list of deps. * needed to enable selfContainedBuild for the managed part since it seems like it's the easiest way to force dotnet to copy relevant binaries to the out folder as well (like libdbgshim.so retrieved via the abovementioned nuget dependency) * use autoPatchelfHook to add stdenv.cc.cc.lib to binaries
26 lines
919 B
Diff
26 lines
919 B
Diff
diff --git a/platformdefinitions.cmake b/platformdefinitions.cmake
|
|
index ed3d9f6..6b0628f 100644
|
|
--- a/platformdefinitions.cmake
|
|
+++ b/platformdefinitions.cmake
|
|
@@ -7,17 +7,21 @@ if (CLR_CMAKE_PLATFORM_ARCH_AMD64)
|
|
add_definitions(-DAMD64)
|
|
add_definitions(-DBIT64=1) # CoreClr <= 3.x
|
|
add_definitions(-DHOST_64BIT=1) # CoreClr > 3.x
|
|
+ add_definitions(-DHOST_AMD64)
|
|
elseif (CLR_CMAKE_PLATFORM_ARCH_I386)
|
|
add_definitions(-D_X86_)
|
|
+ add_definitions(-DHOST_X86)
|
|
elseif (CLR_CMAKE_PLATFORM_ARCH_ARM)
|
|
add_definitions(-D_ARM_)
|
|
add_definitions(-DARM)
|
|
+ add_definitions(-DHOST_ARM)
|
|
elseif (CLR_CMAKE_PLATFORM_ARCH_ARM64)
|
|
add_definitions(-D_ARM64_)
|
|
add_definitions(-DARM64)
|
|
add_definitions(-D_WIN64)
|
|
add_definitions(-DBIT64=1) # CoreClr <= 3.x
|
|
add_definitions(-DHOST_64BIT=1) # CoreClr > 3.x
|
|
+ add_definitions(-DHOST_ARM64)
|
|
else ()
|
|
clr_unknown_arch()
|
|
endif ()
|