We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent a6c3e94 commit 94534cfCopy full SHA for 94534cf
build/util.ts
@@ -58,15 +58,11 @@ export function getEnvVars(target?: string): Record<string, string> {
58
};
59
60
// Use clang-cl on Windows for C/C++ compilation
61
- // Use 8.3 short path to avoid spaces breaking cc crate parsing
62
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") ?? ""}`;
+ env.CC = "clang-cl";
+ env.CXX = "clang-cl";
+ env.LD = "lld-link";
+ env.AR = "llvm-lib";
70
}
71
72
return env;
0 commit comments