Skip to content

Commit 60ece4d

Browse files
committed
fix: LLVM frontend candidates need .exe suffix on Windows
toolchain_frontend() checks for "clang++" in the bin dir, but on Windows the binary is "clang++.exe". Add it to the candidates list.
1 parent 8df273b commit 60ece4d

1 file changed

Lines changed: 4 additions & 0 deletions

File tree

src/toolchain/llvm.cppm

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,11 @@ std::string package_name() {
2424
}
2525

2626
std::vector<std::string> frontend_candidates() {
27+
#if defined(_WIN32)
28+
return {"clang++.exe", "clang++"};
29+
#else
2730
return {"clang++"};
31+
#endif
2832
}
2933

3034
std::vector<std::string> list_aliases() {

0 commit comments

Comments
 (0)