Fixed macOS Compile Error

This commit is contained in:
crazytuzi committed 2024-05-26 20:38:27 +08:00
1 parent 86deb6b260
commit 9817cfcae4
1 file changed
+9 -1
+9 -1
View File
@@ -131,7 +131,15 @@ public class Mono : ModuleRules
}
else if (Target.Platform == UnrealTargetPlatform.Mac)
{
var PlatformLibraryPath = Path.Combine(LibraryPath, $"macOS_{Target.Architecture}");
var PlatformLibraryPath = Path.Combine(LibraryPath,
#if UE_5_2_OR_LATER
Target.Architecture.bIsX64
#else
Target.Architecture == "x86_64" || Target.Architecture == "x64"
#endif
? "macOS_x86_64"
: "macOS_arm64");
PublicAdditionalLibraries.Add(Path.Combine(PlatformLibraryPath,
"libmonosgen-2.0.a"));