Skip to content

Commit 21caa31

Browse files
authored
Use architecture-agnostic RID for ANGLE OSX builds
1 parent 1c08ac5 commit 21caa31

File tree

1 file changed

+3
-7
lines changed

1 file changed

+3
-7
lines changed

build/nuke/Native/Angle.cs

Lines changed: 3 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -101,25 +101,21 @@ partial class Build {
101101
// create universal mac binaries
102102
var arm64NativeRuntimes = runtimes / "osx-arm64" / "native";
103103
var x64NativeRuntimes = runtimes / "osx-x64" / "native";
104+
var universalNativeRuntimes = runtimes / "osx" / "native";
104105
EnsureCleanDirectory(arm64NativeRuntimes);
105106
EnsureCleanDirectory(x64NativeRuntimes);
107+
EnsureCleanDirectory(universalNativeRuntimes);
106108
foreach (var lib in new[] { "libGLESv2.dylib", "libEGL.dylib" })
107109
{
108110
var x64Lib = angleSourceDir / "out" / "Release_x64" / lib;
109111
var arm64Lib = angleSourceDir / "out" / "Release_arm64" / lib;
110112
InheritedShell
111113
(
112-
$"lipo -create \"{arm64Lib}\" \"{x64Lib}\" -output \"{arm64NativeRuntimes / lib}\"",
114+
$"lipo -create \"{arm64Lib}\" \"{x64Lib}\" -output \"{universalNativeRuntimes / lib}\"",
113115
angleSourceDir
114116
)
115117
.AssertZeroExitCode();
116118
}
117-
118-
CopyAll
119-
(
120-
arm64NativeRuntimes.GlobFiles("libGLESv2.dll", "libEGL.dll", "libANGLE.dll"),
121-
x64NativeRuntimes
122-
);
123119
}
124120
// else
125121
// if (OperatingSystem.IsLinux())

0 commit comments

Comments
 (0)