We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 8b4df48 commit 124a46aCopy full SHA for 124a46a
packages/cmake-rn/src/ccache.ts
@@ -1,7 +1,10 @@
1
import cp from "node:child_process";
2
3
export function getCcachePath(): string | null {
4
- const result = cp.spawnSync("which", ["ccache"]);
+ const result = cp.spawnSync(
5
+ process.platform === "win32" ? "where" : "which",
6
+ ["ccache"],
7
+ );
8
if (result.status === 0) {
9
return result.stdout.toString().trim();
10
} else {
0 commit comments