clang-cl is an MSVC compatible frontend for clang, and as such
takes MSVC style arguments. cmake still detects this as "Clang",
but with a separate CMAKE_CXX_SIMULATE_ID set to "MSVC".
This patch detects this case and makes sure that clang-cl ends up
with the correct set of options.
Details
Details
- Reviewers
- None
- Group Reviewers
Windows
Diff Detail
Diff Detail
- Repository
- R240 Extra CMake Modules
- Branch
- master
- Lint
No Linters Available - Unit
No Unit Test Coverage - Build Status
Buildable 10143 Build 10161: arc lint + arc unit
Comment Actions
There was already an earlier (abandoned) attempt at this: https://git.reviewboard.kde.org/r/128779
Comment Actions
FWIW, I have meanwhile used this patch to build all kube dependencies on linux and osx as well, and it seems like it doesn't break anything.
I think clang-cl should receive all arguments it understands with this patch.