Skip to content

Commit 5d4c8c3

Browse files
committed
fix: remove unused files from the build dir
1 parent 2c01084 commit 5d4c8c3

File tree

1 file changed

+9
-0
lines changed

1 file changed

+9
-0
lines changed

src/bindings/utils/compileLLamaCpp.ts

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -464,6 +464,15 @@ async function applyResultDirFixes(resultDirPath: string, tempDirPath: string) {
464464

465465
await fs.remove(tempDirPath);
466466
}
467+
468+
// the vulkan-shaders-gen binary is not needed at runtime
469+
const vulkanShadersGenBinary = path.join(
470+
resultDirPath,
471+
getPlatform() === "win"
472+
? "vulkan-shaders-gen.exe"
473+
: "vulkan-shaders-gen"
474+
);
475+
await fs.remove(vulkanShadersGenBinary);
467476
}
468477

469478
async function resolvePrebuiltBinaryPath(prebuiltBinaryDirectoryPath: string) {

0 commit comments

Comments
 (0)