Repository navigation
build.rs: Use cc-rs's built-in logic for warnings-as-errors. - #1343
Conversation
Take a step towards supporting Clang as the compiler for -msvc targets.
|
@awakecoding @Alovchin91 Please review this. This is one of many changes I'm making to officially support Clang for -msvc targets. |
|
It looks good to me, I guess cc automatically detects the compiler and sets the correct flags. Is there a way to tell cc to use clang/MSVC and not the regular MSVC compiler? And if so, does it use clang-cl (same flags as cl.exe) or clang.exe (same flags as clang on all platforms)? Did you have a way to check which compiler was picked up by cc in the end? |
Codecov Report
@@ Coverage Diff @@
## main #1343 +/- ##
==========================================
- Coverage 92.83% 92.82% -0.01%
==========================================
Files 117 117
Lines 17826 17826
Branches 195 195
==========================================
- Hits 16548 16547 -1
- Misses 1244 1245 +1
Partials 34 34
Continue to review full report at Codecov.
|
If you use
Surprisingly, on Windows I couldn't get |
|
The codecov job's failure is caused by there being less covered code, not by there be any new uncovered code, so it's benign (good even). |
Take a step towards supporting Clang as the compiler for -msvc targets.