Commit e5d9d3f8a1

Alex Rønne Petersen <alex@alexrp.com>
2024-11-13 05:06:04
Compilation: Pass -municode on to Clang.
This is supposed to define the UNICODE macro; it's not just a linker option. Closes #21978.
1 parent 9ebce51
Changed files (1)
src/Compilation.zig
@@ -5625,6 +5625,10 @@ pub fn addCCArgs(
         },
     }
 
+    if (comp.mingw_unicode_entry_point) {
+        try argv.append("-municode");
+    }
+
     if (target.cpu.arch.isThumb()) {
         try argv.append("-mthumb");
     }