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

مهدي شينون (Mehdi Chinoune) via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Wed Jun 15 08:18:09 PDT 2022


MehdiChinoune updated this revision to Diff 437188.
MehdiChinoune added a comment.

Address review comment


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

https://reviews.llvm.org/D125263

Files:
  llvm/cmake/modules/HandleLLVMOptions.cmake


Index: llvm/cmake/modules/HandleLLVMOptions.cmake
===================================================================
--- llvm/cmake/modules/HandleLLVMOptions.cmake
+++ llvm/cmake/modules/HandleLLVMOptions.cmake
@@ -561,6 +561,9 @@
   # but in many objects files need more than that. This flag is to increase the
   # number of sections.
   append("/bigobj" CMAKE_CXX_FLAGS)
+
+  # Standards conformance
+  append("/permissive-" CMAKE_C_FLAGS CMAKE_CXX_FLAGS)
 endif( MSVC )
 
 # Warnings-as-errors handling for GCC-compatible compilers:


-------------- next part --------------
A non-text attachment was scrubbed...
Name: D125263.437188.patch
Type: text/x-patch
Size: 538 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20220615/69b19c61/attachment.bin>


More information about the llvm-commits mailing list