Skip to content

Commit e3fb637

Browse files
authored
build unreal macOS arm64 (#2251) fix #2245
fixes #2245
1 parent 965bfa5 commit e3fb637

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

unreal/Puerts/Source/JsEnv/JsEnv.Build.cs

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -572,6 +572,12 @@ void ThirdPartyNodejs(ReadOnlyTargetRules Target)
572572
else if (Target.Platform == UnrealTargetPlatform.Mac)
573573
{
574574
string V8LibraryPath = Path.Combine(LibraryPath, "macOS");
575+
#if UE_5_2_OR_LATER
576+
if (Target.Architecture == UnrealArch.Arm64)
577+
{
578+
V8LibraryPath = Path.Combine(LibraryPath, "macOS_arm64");
579+
}
580+
#endif
575581
if (Node16)
576582
{
577583
PublicAdditionalLibraries.Add(Path.Combine(V8LibraryPath, "libnode.93.dylib"));

0 commit comments

Comments
 (0)