Skip to content

Commit c7ee0a8

Browse files
committed
Platform: extract corecrt module
This extracts the `corecrt` module in order to setup the necessary structure for enabling the `std` module for C++.
1 parent 15c333b commit c7ee0a8

File tree

1 file changed

+27
-15
lines changed

1 file changed

+27
-15
lines changed

stdlib/public/Platform/ucrt.modulemap

Lines changed: 27 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -116,26 +116,38 @@ module ucrt [system] {
116116
header "process.h"
117117
export *
118118
}
119+
}
120+
121+
module corecrt [system] {
122+
use vcruntime
123+
124+
header "corecrt.h"
125+
header "corecrt_stdio_config.h"
126+
export *
119127

120-
module corecrt {
121-
header "corecrt.h"
122-
header "corecrt_stdio_config.h"
128+
module io {
129+
header "corecrt_io.h"
123130
export *
131+
}
124132

125-
module io {
126-
header "corecrt_io.h"
127-
export *
128-
}
133+
module math {
134+
header "corecrt_math.h"
135+
export *
136+
}
129137

130-
module math {
131-
header "corecrt_math.h"
132-
export *
133-
}
138+
module stdio {
139+
header "corecrt_wstdio.h"
140+
export *
141+
}
134142

135-
module stdio {
136-
header "corecrt_wstdio.h"
137-
export *
138-
}
143+
module string {
144+
header "corecrt_wstring.h"
145+
export *
146+
}
147+
148+
module time {
149+
header "corecrt_wtime.h"
150+
export *
139151
}
140152
}
141153

0 commit comments

Comments
 (0)