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

Abhina Sree via cfe-commits cfe-commits at lists.llvm.org
Wed Feb 25 07:14:56 PST 2026


================
@@ -513,6 +513,10 @@ class Triple {
   /// For example, "fooos1.2.3" would return "1.2.3".
   LLVM_ABI StringRef getEnvironmentVersionString() const;
 
+  /// Get the default system encoding of the triple.
+  /// For example, "IBM-1047" for z/OS, "UTF-8" for others
+  LLVM_ABI StringRef getDefaultNarrowTextEncoding() const;
+
----------------
abhina-sree wrote:

We also use this in setting up the default value for fexec-charset in Clang.cpp, on z/OS we want the default value to be IBM-1047 if nothing is specified, on other platforms the default is UTF-8

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


More information about the cfe-commits mailing list