zig

fork of https://codeberg.org/ziglang/zig
Log | Files | Refs | README | LICENSE

commit e5d9d3f8a128ccf38b7e2f82c6abe70fb34e9eec (tree)
parent 9ebce51e164c6d35e4f412eb747fa8d3c6ea84b3
Author: Alex Rønne Petersen <alex@alexrp.com>
Date:   Wed, 13 Nov 2024 05:06:04 +0100

Compilation: Pass -municode on to Clang.

This is supposed to define the UNICODE macro; it's not just a linker option.

Closes #21978.

Diffstat:
Msrc/Compilation.zig | 4++++
1 file changed, 4 insertions(+), 0 deletions(-)

diff --git 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"); }