authorgravatar for alex@alexrp.comAlex Rønne Petersen <alex@alexrp.com> 2024-11-13 05:06:04+01:00
committergravatar for alex@alexrp.comAlex Rønne Petersen <alex@alexrp.com> 2024-11-13 14:22:45+01:00
loge5d9d3f8a128ccf38b7e2f82c6abe70fb34e9eec
tree8c203e4d57798c3746f4208bf9c648ee641e9bd8
parent9ebce51e164c6d35e4f412eb747fa8d3c6ea84b3

Compilation: Pass -municode on to Clang.

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

1 files changed, 4 insertions(+), 0 deletions(-)

src/Compilation.zig+4
...@@ -5625,6 +5625,10 @@ pub fn addCCArgs(...@@ -5625,6 +5625,10 @@ pub fn addCCArgs(
5625 },5625 },
5626 }5626 }
56275627
5628 if (comp.mingw_unicode_entry_point) {
5629 try argv.append("-municode");
5630 }
5631
5628 if (target.cpu.arch.isThumb()) {5632 if (target.cpu.arch.isThumb()) {
5629 try argv.append("-mthumb");5633 try argv.append("-mthumb");
5630 }5634 }