From e5d9d3f8a128ccf38b7e2f82c6abe70fb34e9eec Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Alex=20R=C3=B8nne=20Petersen?= Date: Wed, 13 Nov 2024 05:06:04 +0100 Subject: [PATCH] Compilation: Pass -municode on to Clang. This is supposed to define the UNICODE macro; it's not just a linker option. Closes #21978. --- src/Compilation.zig | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/Compilation.zig b/src/Compilation.zig index f646ef258a..a228d61257 100644 --- a/src/Compilation.zig +++ b/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"); }