Skip to content

Commit 43ec13a

Browse files
authored
Merge pull request #80151 from Steelskin/fabrice/restore-ucrt-legacy-stdio-def
Restore legacy_stdio_definitions in ucrt.modulemap
2 parents 8e10b00 + 7a965ce commit 43ec13a

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed

stdlib/public/Platform/ucrt.modulemap

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -92,6 +92,13 @@ module ucrt [system] {
9292
module stdio {
9393
header "stdio.h"
9494
export *
95+
96+
// NOTE(compnerd) this is a horrible workaround for the fact that
97+
// Microsoft has fully inlined nearly all of the printf family of
98+
// functions in the headers which results in the definitions being elided
99+
// resulting in undefined symbols. The legacy_stdio_definitions provides
100+
// out-of-line definitions for these functions.
101+
link "legacy_stdio_definitions"
95102
}
96103

97104
module stdlib {

0 commit comments

Comments
 (0)