[all-commits] [llvm/llvm-project] 7ba70d: [PR52549][clang-cl] Predefine _MSVC_EXECUTION_CHAR...

zero9178 via All-commits all-commits at lists.llvm.org
Tue Nov 30 00:13:36 PST 2021


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: 7ba70d32736aef0c640b9d0e7b9081fc208c81c2
      https://github.com/llvm/llvm-project/commit/7ba70d32736aef0c640b9d0e7b9081fc208c81c2
  Author: Markus Böck <markus.boeck02 at gmail.com>
  Date:   2021-11-30 (Tue, 30 Nov 2021)

  Changed paths:
    M clang/lib/Basic/Targets/OSTargets.cpp
    M clang/test/Preprocessor/init.c

  Log Message:
  -----------
  [PR52549][clang-cl] Predefine _MSVC_EXECUTION_CHARACTER_SET

Since VS 2022 17.1 MSVC predefines _MSVC_EXECUTION_CHARACTER_SET to inform the users of the execution character set defined at compile time. The value the macro expands to is a Windows Code Page Identifier which are documented here: https://docs.microsoft.com/en-us/windows/win32/intl/code-page-identifiers

As clang currently only supports UTF-8 it is defined as 65001. If clang-cl were to support a different execution character set in the future we'd have to change the value.

Fixes https://bugs.llvm.org/show_bug.cgi?id=52549

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




More information about the All-commits mailing list