Skip to content

Commit e5d9d3f

Browse files
committed
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 commit e5d9d3f

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

src/Compilation.zig

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5625,6 +5625,10 @@ pub fn addCCArgs(
56255625
},
56265626
}
56275627

5628+
if (comp.mingw_unicode_entry_point) {
5629+
try argv.append("-municode");
5630+
}
5631+
56285632
if (target.cpu.arch.isThumb()) {
56295633
try argv.append("-mthumb");
56305634
}

0 commit comments

Comments
 (0)