Skip to content

Commit

Permalink
fix clang not being detected as clang
Browse files Browse the repository at this point in the history
  • Loading branch information
russelltg committed Mar 31, 2024
1 parent 80a2f81 commit 006ac81
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion dev-tools/cc-test/build.rs
Original file line number Diff line number Diff line change
Expand Up @@ -112,7 +112,7 @@ fn main() {
fs::create_dir(&out).unwrap();

// windows registry won't find clang in path
if !compiler.path().to_string_lossy().starts_with("clang-") {
if !compiler.path().to_string_lossy().starts_with("clang") {
env::remove_var("PATH");
}
env::remove_var("VCINSTALLDIR");
Expand Down

0 comments on commit 006ac81

Please sign in to comment.