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 04b5d50 commit b59af76
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 @@ -92,6 +94,8 @@ partial class Build {
InheritedShell($"{prepare} -DCMAKE_OSX_ARCHITECTURES={arch}", macOsBuildDir).AssertZeroExitCode();
InheritedShell(build, macOsBuildDir).AssertZeroExitCode();
InheritedShell($"strip -Sx loader/libvulkan.dylib", macOsBuildDir).AssertZeroExitCode();
CopyAll((macOsBuildDir / "loader").GlobFiles("libvulkan.dylib"), runtimes / rid / "native");
}
}
Expand Down

0 comments on commit b59af76

Please sign in to comment.