diff options
| author | Alex Rønne Petersen <alex@alexrp.com> | 2024-11-13 05:06:04 +0100 |
|---|---|---|
| committer | Alex Rønne Petersen <alex@alexrp.com> | 2024-11-13 14:22:45 +0100 |
| commit | e5d9d3f8a128ccf38b7e2f82c6abe70fb34e9eec (patch) | |
| tree | 8c203e4d57798c3746f4208bf9c648ee641e9bd8 /src | |
| parent | 9ebce51e164c6d35e4f412eb747fa8d3c6ea84b3 (diff) | |
| download | zig-e5d9d3f8a128ccf38b7e2f82c6abe70fb34e9eec.tar.gz zig-e5d9d3f8a128ccf38b7e2f82c6abe70fb34e9eec.zip | |
Compilation: Pass -municode on to Clang.
This is supposed to define the UNICODE macro; it's not just a linker option.
Closes #21978.
Diffstat (limited to 'src')
| -rw-r--r-- | src/Compilation.zig | 4 |
1 files changed, 4 insertions, 0 deletions
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"); } |
