[llvm-branch-commits] [clang] [llvm] Enable fexec-charset option (PR #138895)

via llvm-branch-commits llvm-branch-commits at lists.llvm.org
Mon May 12 00:42:43 PDT 2025


================
@@ -416,8 +416,7 @@ Builtin Macros
 ``__clang_literal_encoding__``
   Defined to a narrow string literal that represents the current encoding of
   narrow string literals, e.g., ``"hello"``. This macro typically expands to
-  "UTF-8" (but may change in the future if the
-  ``-fexec-charset="Encoding-Name"`` option is implemented.)
+  the charset specified by -fexec-charset if specified, or the system charset.
----------------
cor3ntin wrote:

```suggestion
  the text encoding specified by -fexec-charset if specified, or the system charset.
```

https://github.com/llvm/llvm-project/pull/138895


More information about the llvm-branch-commits mailing list