Fixed macOS Compile Error

This commit is contained in:
crazytuzi committed 2024-05-26 20:40:42 +08:00
1 parent 47828b6e85
commit d7305649a0
1 file changed
+9 -1
+9 -1
View File
@@ -140,7 +140,15 @@ public class Mono : ModuleRules
} }
else if (Target.Platform == UnrealTargetPlatform.Mac) 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, PublicAdditionalLibraries.Add(Path.Combine(PlatformLibraryPath,
"libmonosgen-2.0.a")); "libmonosgen-2.0.a"));