[PATCH] D125263: [CMake][MSVC] Use `/permissive-` as MSVC equivalent to `-pedantic`

Eli Friedman via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Fri Jun 3 14:03:42 PDT 2022


efriedma added a comment.

This isn't a perfect mapping.  In clang/gcc, `-pedantic` just turns on additional warnings. MSVC `/permissive-` actually changes the behavior of the compiler, so code that compiles with `/permissive-` might not compile without it, or vice versa.  If you really want an option to turn on MSVC strict conformance options, I think we should call it something else.

Does LLVM build successfully with `/permissive-`?


Repository:
  rG LLVM Github Monorepo

CHANGES SINCE LAST ACTION
  https://reviews.llvm.org/D125263/new/

https://reviews.llvm.org/D125263



More information about the llvm-commits mailing list