Add prefer_clang_cl_over_msvc
cc @madsmtm I am really busy recently and I don't think I can work on this for the next week, if you have time, can you take up this please?
cc @madsmtm I am really busy recently and I don't think I can work on this for the next week, if you have time, can you take up this please?
I'd rather not, I don't feel familiar enough with MSVC to feel confident in anything relating to that, sorry :/.
cc @ChrisDenton hello, can you take over this PR please?
I don't have time recently to continue push this.
Sure, I've added it to my queue.
Thank you
Is this possibly missing Fixes #882? 🙏
(a) f the user has set TARGET_CC/CC (whichever is relevant) to something other than MSVC, then calling prefer_clang_cl_over_msvc should do nothing. For example, if they've chosen to use clang or (for some reason) GCC, or clang-cl, then prefer_clang_cl_over_msvc shouldn't override that choice.
(b) IDK what to do when the user set TARGET_CC/CC explicitly to MSVC. For my use case the best thing to do would be to choose the clang-cl that's bundled with that install of MSVC.
If the user set TARGET_CC/CC to some version of clang-cl, then I guess we should use that version of clang-cl. But this is handled by (a).
Closing in favor of #1516