Skip to content

Commit

Permalink
better check for if compiler is clang
Browse files Browse the repository at this point in the history
  • Loading branch information
russelltg committed Mar 31, 2024
1 parent fd6b59a commit 80a2f81
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.is_like_msvc() {
if !compiler.path().to_string_lossy().starts_with("clang-") {
env::remove_var("PATH");
}
env::remove_var("VCINSTALLDIR");
Expand Down

0 comments on commit 80a2f81

Please sign in to comment.