Replaced clang-cl for MSVC Compiler on Windows #2460
Draft
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
MSVC is the default compiler on Windows and switching verible to use it would alleviate some pain points of using bazel on Windows.
For context,
clang-clwas originally used because designated identifiers are used in the codebase, which are only supported by C++20 in MSVC, which was not available at the time. Also, MSVC would crash on the codebase, which is no longer the case.Protobuf was updated because current version had MSVC deprecated on bazel. Deprecation was since reversed.
Finally,
tree-operations.hwas failing to compile. I managed to fix it, but template code is beyond my comprehension and should be reviewed by someone in the knows.