Skip to content

Commit

Permalink
Native/Vulkan Loader: Strip Linux/macOS binaries after build.
Browse files Browse the repository at this point in the history
  • Loading branch information
alexrp committed Apr 13, 2024
1 parent dd836ab commit 6871235
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions build/nuke/Native/VulkanLoader.cs
Original file line number Diff line number Diff line change
Expand Up @@ -72,6 +72,8 @@ partial class Build {
InheritedShell($"{prepare} {GetCMakeToolchainFlag(triple)}", buildDir).AssertZeroExitCode();
InheritedShell(build, buildDir).AssertZeroExitCode();
InheritedShell($"{triple}-strip --strip-unneeded loader/libvulkan.so", buildDir).AssertZeroExitCode();
CopyAll((buildDir / "loader").GlobFiles("libvulkan.so"), runtimes / rid / "native");
}
}
Expand All @@ -88,6 +90,8 @@ partial class Build {
InheritedShell($"{prepare} -DCMAKE_OSX_ARCHITECTURES={arch}", buildDir).AssertZeroExitCode();
InheritedShell(build, buildDir).AssertZeroExitCode();
InheritedShell($"strip -Sx loader/libvulkan.dylib", buildDir).AssertZeroExitCode();
CopyAll((buildDir / "loader").GlobFiles("libvulkan.dylib"), runtimes / rid / "native");
}
}
Expand Down

0 comments on commit 6871235

Please sign in to comment.