Skip to content

Commit 94534cf

Browse files
committed
hmm
1 parent a6c3e94 commit 94534cf

File tree

1 file changed

+4
-8
lines changed

1 file changed

+4
-8
lines changed

build/util.ts

Lines changed: 4 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -58,15 +58,11 @@ export function getEnvVars(target?: string): Record<string, string> {
5858
};
5959

6060
// Use clang-cl on Windows for C/C++ compilation
61-
// Use 8.3 short path to avoid spaces breaking cc crate parsing
6261
if (actualTarget.includes("windows")) {
63-
const llvmPath =
64-
"C:\\PROGRA~2\\MICROS~1\\2022\\BuildTools\\VC\\Tools\\Llvm\\x64\\bin";
65-
env.CC = `${llvmPath}\\clang-cl.exe`;
66-
env.CXX = `${llvmPath}\\clang-cl.exe`;
67-
env.LD = `${llvmPath}\\lld-link.exe`;
68-
env.AR = `${llvmPath}\\llvm-lib.exe`;
69-
env.PATH = `${llvmPath};${Deno.env.get("PATH") ?? ""}`;
62+
env.CC = "clang-cl";
63+
env.CXX = "clang-cl";
64+
env.LD = "lld-link";
65+
env.AR = "llvm-lib";
7066
}
7167

7268
return env;

0 commit comments

Comments
 (0)