Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fix compilation when using Clang in "MSVC mode" (libarchive#2221)
When using Clang in "MSVC mode" (i.e. clang-cl), command line arguments are interpreted as MSVC would interpret them, at least when there are conflicts. This means that `-Wall` - potentially among other switches - is interpreted _dramatically_ differently by clang-cl compared to "normal" Clang. In CMake, this can be detected by testing for `if (MSVC)` in addition to compiler id test, which is what I do here. Note: this is a partial cherry-pick from libarchive#2095, which I'm going to go through and break into smaller pieces in hopes of getting some things in while discussion of other things can continue.
- Loading branch information