[all-commits] [llvm/llvm-project] df6291: [CMake][MSVC] Compile with `/permissive-`

مهدي شينون (Mehdi Chinoune) via All-commits all-commits at lists.llvm.org
Mon Jun 20 12:44:13 PDT 2022


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: df6291a666d3be784e2bbd00e4dbcdcceaf0196f
      https://github.com/llvm/llvm-project/commit/df6291a666d3be784e2bbd00e4dbcdcceaf0196f
  Author: Mehdi Chinoune <mehdi.chinoune at hotmail.com>
  Date:   2022-06-20 (Mon, 20 Jun 2022)

  Changed paths:
    M llvm/cmake/modules/HandleLLVMOptions.cmake

  Log Message:
  -----------
  [CMake][MSVC] Compile with `/permissive-`

This turns off a bunch of non-standard behaviors in MSVC. LLVM, as a
portable codebase, should build correctly without those behaviors. Note
that `/permissive-` implies `/Zc:strictStrings` and `/Zc:rvalueCast`.

See also:
https://docs.microsoft.com/en-us/cpp/build/reference/permissive-standards-conformance

Differential Revision: https://reviews.llvm.org/D125263




More information about the All-commits mailing list