Skip to content

Commit 124a46a

Browse files
committed
Use where on Windows
1 parent 8b4df48 commit 124a46a

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

packages/cmake-rn/src/ccache.ts

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,10 @@
11
import cp from "node:child_process";
22

33
export function getCcachePath(): string | null {
4-
const result = cp.spawnSync("which", ["ccache"]);
4+
const result = cp.spawnSync(
5+
process.platform === "win32" ? "where" : "which",
6+
["ccache"],
7+
);
58
if (result.status === 0) {
69
return result.stdout.toString().trim();
710
} else {

0 commit comments

Comments
 (0)