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.
Previously clang-cl would not be detected as MSVC despite using MSVC command line syntax. This PR adds such support.
In addition, with this PR, on Clang ThinLTO will be used, which hopefully offers some performance benefit.
It appears that clang-cl would ignore the MSVC option for LTO
/GL
&/LTCG
. ThinLTO will also be used on clang-cl.Additionally,
x86_sse
option is modified to support SSE4.1, SSE4.2, AVX, AVX2, AVX512.SSE2 is not unavailable on x86-64. Instead it's always available so compilers enable SSE2 support on x86-64 implicitly.
Various refactorings are made to realize the above changes while keeping it cleanly organized.