fix: .NET script loader not initializing correctly on macOS

This commit is contained in:
WerWolv
2024-05-18 11:10:55 +02:00
parent 9e2f228d9a
commit 1e91505e6e
3 changed files with 17 additions and 1 deletions

View File

@@ -11,6 +11,14 @@ if (UNIX)
set(CORECLR_SUBARCH "arm64")
endif()
endif()
if (APPLE)
if (CMAKE_SYSTEM_PROCESSOR STREQUAL "arm64")
set(CORECLR_ARCH "osx-arm64")
set(CORECLR_SUBARCH "arm64")
else()
set(CORECLR_ARCH "osx-x64")
endif()
endif()
if (NOT DOTNET_EXECUTABLE)
set(DOTNET_EXECUTABLE dotnet)