Skip to content

Commit 6c22cc9

Browse files
committed
fix: disable ccache for Emscripten builds on Windows
Strawberry Perl's ccache on Windows CI runners cannot properly wrap emcc, causing "The system cannot find the path specified" errors.
1 parent 085e2b9 commit 6c22cc9

1 file changed

Lines changed: 4 additions & 0 deletions

File tree

build-tools/tasks/wasm.js

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -113,6 +113,10 @@ async function executeWasmBuild(target, targetConfig, { debug, clean, buildDir,
113113
`-DCMAKE_BUILD_TYPE=${buildType}`,
114114
];
115115

116+
if (process.platform === 'win32') {
117+
cmakeArgs.push('-DES_ENABLE_CCACHE=OFF');
118+
}
119+
116120
if (!debug && optConfig?.cmakeOpt) {
117121
cmakeArgs.push(`-DCMAKE_C_FLAGS=${optConfig.cmakeOpt}`);
118122
cmakeArgs.push(`-DCMAKE_CXX_FLAGS=${optConfig.cmakeOpt}`);

0 commit comments

Comments
 (0)