Skip to content

Commit e9d8ec6

Browse files
committed
Native/Assimp: Strip Linux/macOS binaries after build.
1 parent 459fcfa commit e9d8ec6

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

build/nuke/Native/Assimp.cs

+4
Original file line numberDiff line numberDiff line change
@@ -73,6 +73,8 @@ partial class Build {
7373
InheritedShell($"{prepare} {GetCMakeToolchainFlag(triple)}", buildDir).AssertZeroExitCode();
7474
InheritedShell(build, buildDir).AssertZeroExitCode();
7575

76+
InheritedShell($"{triple}-strip --strip-unneeded bin/libassimp.so.5", buildDir).AssertZeroExitCode();
77+
7678
CopyAll((buildDir / "bin").GlobFiles("libassimp.so.5"), runtimes / rid / "native");
7779
}
7880
}
@@ -89,6 +91,8 @@ partial class Build {
8991
InheritedShell($"{prepare} -DCMAKE_OSX_ARCHITECTURES={arch}", buildDir).AssertZeroExitCode();
9092
InheritedShell(build, buildDir).AssertZeroExitCode();
9193

94+
InheritedShell($"strip -Sx bin/libassimp.5.dylib", buildDir).AssertZeroExitCode();
95+
9296
CopyAll((buildDir / "bin").GlobFiles("libassimp.5.dylib"), runtimes / rid / "native");
9397
}
9498
}

0 commit comments

Comments
 (0)