Fix typo
This commit is contained in:
@@ -28,7 +28,7 @@
|
||||
#include "Engine/Profiler/ProfilerCPU.h"
|
||||
#include "Engine/Threading/Threading.h"
|
||||
#include "Engine/Debug/Exceptions/CLRInnerException.h"
|
||||
#if DOTNET_HOST_CORECRL
|
||||
#if DOTNET_HOST_CORECLR
|
||||
#include <nethost.h>
|
||||
#include <coreclr_delegates.h>
|
||||
#include <hostfxr.h>
|
||||
@@ -1478,7 +1478,7 @@ void* GetCustomAttribute(const MClass* klass, const MClass* attributeClass)
|
||||
return CallStaticMethod<void*, void*, void*>(GetCustomAttributePtr, klass->GetNative(), attributeClass ? attributeClass->GetNative() : nullptr);
|
||||
}
|
||||
|
||||
#if DOTNET_HOST_CORECRL
|
||||
#if DOTNET_HOST_CORECLR
|
||||
|
||||
const char_t* NativeInteropTypeName = FLAX_CORECLR_TEXT("FlaxEngine.Interop.NativeInterop, FlaxEngine.CSharp");
|
||||
hostfxr_initialize_for_runtime_config_fn hostfxr_initialize_for_runtime_config;
|
||||
|
||||
8
Source/ThirdParty/nethost/nethost.Build.cs
vendored
8
Source/ThirdParty/nethost/nethost.Build.cs
vendored
@@ -49,7 +49,7 @@ public class nethost : ThirdPartyModule
|
||||
case TargetPlatform.XboxOne:
|
||||
case TargetPlatform.XboxScarlett:
|
||||
case TargetPlatform.UWP:
|
||||
if (hostRuntime.Type == DotNetSdk.HostType.CoreCRL)
|
||||
if (hostRuntime.Type == DotNetSdk.HostType.CoreCLR)
|
||||
{
|
||||
options.OutputFiles.Add(Path.Combine(hostRuntime.Path, "nethost.lib"));
|
||||
options.DependencyFiles.Add(Path.Combine(hostRuntime.Path, "nethost.dll"));
|
||||
@@ -93,10 +93,10 @@ public class nethost : ThirdPartyModule
|
||||
options.PublicDefinitions.Add("DOTNET_HOST_RUNTIME_IDENTIFIER=" + DotNetSdk.GetHostRuntimeIdentifier(options.Platform.Target, options.Architecture));
|
||||
switch (hostRuntime.Type)
|
||||
{
|
||||
case DotNetSdk.HostType.CoreCRL:
|
||||
case DotNetSdk.HostType.CoreCLR:
|
||||
{
|
||||
// Use CoreCRL for runtime hosting
|
||||
options.PublicDefinitions.Add("DOTNET_HOST_CORECRL");
|
||||
// Use CoreCLR for runtime hosting
|
||||
options.PublicDefinitions.Add("DOTNET_HOST_CORECLR");
|
||||
options.PublicIncludePaths.Add(hostRuntime.Path);
|
||||
break;
|
||||
}
|
||||
|
||||
@@ -32,9 +32,9 @@ namespace Flax.Build
|
||||
public enum HostType
|
||||
{
|
||||
/// <summary>
|
||||
/// Core CRL runtime.
|
||||
/// Core CLR runtime.
|
||||
/// </summary>
|
||||
CoreCRL,
|
||||
CoreCLR,
|
||||
|
||||
/// <summary>
|
||||
/// Old-school Mono runtime.
|
||||
@@ -73,7 +73,7 @@ namespace Flax.Build
|
||||
case TargetPlatform.Windows:
|
||||
case TargetPlatform.Linux:
|
||||
case TargetPlatform.Mac:
|
||||
Type = HostType.CoreCRL;
|
||||
Type = HostType.CoreCLR;
|
||||
break;
|
||||
default:
|
||||
Type = HostType.Mono;
|
||||
|
||||
Reference in New Issue
Block a user