diff --git a/build/nuke/Native/VulkanLoader.cs b/build/nuke/Native/VulkanLoader.cs index 4573843b7b..b91286bcc5 100644 --- a/build/nuke/Native/VulkanLoader.cs +++ b/build/nuke/Native/VulkanLoader.cs @@ -72,6 +72,8 @@ partial class Build { InheritedShell($"{prepare} {GetCMakeToolchainFlag(triple)}", buildDir).AssertZeroExitCode(); InheritedShell(build, buildDir).AssertZeroExitCode(); + InheritedShell($"{triple}-strip loader/libvulkan.so", buildDir).AssertZeroExitCode(); + CopyAll((buildDir / "loader").GlobFiles("libvulkan.so"), runtimes / rid / "native"); } } @@ -88,6 +90,8 @@ partial class Build { InheritedShell($"{prepare} -DCMAKE_OSX_ARCHITECTURES={arch}", buildDir).AssertZeroExitCode(); InheritedShell(build, buildDir).AssertZeroExitCode(); + InheritedShell($"strip loader/libvulkan.dylib", buildDir).AssertZeroExitCode(); + CopyAll((buildDir / "loader").GlobFiles("libvulkan.dylib"), runtimes / rid / "native"); } }